Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68065
| From | Roy Smith <roy@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: How is unicode implemented behind the scenes? |
| Date | 2014-03-08 22:01 -0500 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <roy-A8220E.22015908032014@news.panix.com> (permalink) |
| References | <mailman.7942.1394330927.18130.python-list@python.org> <531bd709$0$29985$c3e8da3$5496439d@news.astraweb.com> |
In article <531bd709$0$29985$c3e8da3$5496439d@news.astraweb.com>, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > There are various common ways to store Unicode strings in RAM. > > The first, UTF-16. > [...] > Another option is UTF-32. > [...] > Another option is to use UTF-8 internally. > [...] > In Python 3.3, CPython introduced an internal scheme that gives the best > of all worlds. When a string is created, Python uses a different > implementation depending on the characters in the string: This was an excellent post, but I would take exception to the "best of all worlds" statement. I would put it a little less absolutely and say something like, "a good compromise for many common use cases". I would even go with, "... for most common use cases". But, there are situations where it loses.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How is unicode implemented behind the scenes? Dan Stromberg <drsalists@gmail.com> - 2014-03-08 18:08 -0800
Re: How is unicode implemented behind the scenes? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-09 02:50 +0000
Re: How is unicode implemented behind the scenes? Roy Smith <roy@panix.com> - 2014-03-08 22:01 -0500
Re: How is unicode implemented behind the scenes? Chris Angelico <rosuav@gmail.com> - 2014-03-09 14:19 +1100
Re: How is unicode implemented behind the scenes? Rustom Mody <rustompmody@gmail.com> - 2014-03-08 19:12 -0800
Re: How is unicode implemented behind the scenes? Dan Sommers <dan@tombstonezero.net> - 2014-03-09 05:46 +0000
csiph-web