Re: [Python-Dev] File system path encoding on Windows

2016-08-23 Thread Stephen J. Turnbull
Steve Dower writes: > * Stephen sees "no reason not to change locale.getpreferredencoding()" > (default encoding for open()) at the same time with the same switches, > while I'm not quite as confident. Do users generally specify an encoding > these days? I know I always put utf-8 there. I

Re: [Python-Dev] PEP 525

2016-08-23 Thread Rajiv Kumar
Hi Yury, I was playing with your implementation to gain a better understanding of the operation of asend() and friends. Since I was explicitly trying to "manually" advance the generators, I wasn't using asyncio or other event loop. This meant that the first thing I ran into with my toy code was th

Re: [Python-Dev] File system path encoding on Windows

2016-08-23 Thread Steve Dower
I've trimmed fairly aggressively for the sake of not causing the rest of the list to mute our discussion (again :) ). Stephen - feel free to email me off list if I go too far or misrepresent you. As a summary for people who don't want to read on (and Stephen will correct me if I misquote): *

[Python-Dev] PEP 525

2016-08-23 Thread Yury Selivanov
Hi, I think it's time to discuss PEP 525 on python-dev (pasted below). There were no changes in the PEP since I posted it to python-ideas a couple of weeks ago. One really critical thing that will block PEP acceptance is asynchronous generators (AG) finalization. The problem is to provide a re

Re: [Python-Dev] File system path encoding on Windows

2016-08-23 Thread Stephen J. Turnbull
eryk sun writes: > I just wrote a simple function to enumerate the 822 system locales on > my Windows box (using EnumSystemLocalesEx and GetLocaleInfoEx, which > are Unicode-only functions), and 36.7% of them lack an ANSI codepage. > They're Unicode-only locales. UTF-8 is the only way to suppo