Re: [Python-ideas] PEP 538 (C locale coercion) now depends on PEP 540 (UTF-8 mode)

2017-01-21 Thread INADA Naoki
I love it PEP 540 helps using UTF-8 on Python. PEP 538 helps using UTF-8 on C libraries within Python, too, (if system supports LC_CTYPE=UTF-8 or C.UTF-8.) It seems best solution we can do for now. ___ Python-ideas mailing list Python-ideas@python.org h

[Python-ideas] PEP 538 (C locale coercion) now depends on PEP 540 (UTF-8 mode)

2017-01-21 Thread Nick Coghlan
Hi folks, I've pushed an update to PEP 538 that eliminates any fallback to the en_US.UTF-8 locale, and instead relies solely on PEP 540's bypassing of the platform's locale subsystem in cases where the default C locale is specified. This revision means that the two PEPs can now be read as follows

Re: [Python-ideas] Ideas for improving the struct module

2017-01-21 Thread Nick Coghlan
On 21 January 2017 at 14:51, Nathaniel Smith wrote: > On Fri, Jan 20, 2017 at 7:39 PM, Nathaniel Smith wrote: >> [...] >> Some of these strategies that you might find helpful (or not): > > Oh right, and of course just after I hit send I realized I forgot one > of my favorites! > > - come up with