Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #64759
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: Trying to understand this moji-bake |
| Date | 2014-01-25 22:31 -0500 |
| References | <52e33f8d$0$29999$c3e8da3$5496439d@news.astraweb.com> <mailman.5965.1390630146.18130.python-list@python.org> <bkic64FrnhdU1@mid.individual.net> <CAPTjJmpx95B_a1m06+OAUxLVkfz6g8GoieiCqMuvkKxbgdOM1w@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5985.1390707137.18130.python-list@python.org> (permalink) |
On 1/25/2014 2:13 PM, Chris Angelico wrote: > On Sun, Jan 26, 2014 at 4:56 AM, Peter Pearson <ppearson@nowhere.invalid> wrote: >> $ python2.7 -c "import sys; print(sys.stdin.encoding)" >> UTF-8 > > This isn't from stdin, though, it's about the interpretation of the > bytes of source code without a magic cookie. > > According to PEP 263 [1], the default encoding should have become > "ascii" as of Python 2.5. That's what puzzles me. I believe it is actually (but unofficially) latin-1 so that latin-1 accented chars can be used in identifiers even though only ascii is officially supported. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Trying to understand this moji-bake Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-25 04:37 +0000
Re: Trying to understand this moji-bake Cameron Simpson <cs@zip.com.au> - 2014-01-25 16:08 +1100
Re: Trying to understand this moji-bake Chris Angelico <rosuav@gmail.com> - 2014-01-25 17:08 +1100
Re: Trying to understand this moji-bake Peter Pearson <ppearson@nowhere.invalid> - 2014-01-25 17:56 +0000
Re: Trying to understand this moji-bake Chris Angelico <rosuav@gmail.com> - 2014-01-26 06:13 +1100
Re: Trying to understand this moji-bake Terry Reedy <tjreedy@udel.edu> - 2014-01-25 22:31 -0500
Re: Trying to understand this moji-bake Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-26 02:04 +0000
Re: Trying to understand this moji-bake Chris Angelico <rosuav@gmail.com> - 2014-01-26 13:08 +1100
Re: Trying to understand this moji-bake Peter Otten <__peter__@web.de> - 2014-01-25 09:56 +0100
Re: Trying to understand this moji-bake wxjmfauth@gmail.com - 2014-01-25 01:24 -0800
Re: Trying to understand this moji-bake Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2014-01-25 21:15 +0000
csiph-web