Re: [Python-Dev] Windows Unicode console support [Was: Bytes path support]

2014-08-27 Thread Nick Coghlan
On 27 August 2014 01:23, Paul Moore p.f.mo...@gmail.com wrote: On 24 August 2014 04:27, Nick Coghlan ncogh...@gmail.com wrote: One of those areas is the fact that we still use the old 8-bit APIs to interact with the Windows console. Those are just as broken in a multilingual world as the other

Re: [Python-Dev] Windows Unicode console support [Was: Bytes path support]

2014-08-27 Thread Paul Moore
On 27 August 2014 09:09, Nick Coghlan ncogh...@gmail.com wrote: There are two links to CPython issues from the project description: http://bugs.python.org/issue1602 http://bugs.python.org/issue17620 Part of the feedback on those was that as much as possible should be made available as a

Re: [Python-Dev] Bytes path support

2014-08-27 Thread Nick Coghlan
On 27 August 2014 08:52, Nick Coghlan ncogh...@gmail.com wrote: On 27 Aug 2014 02:52, Terry Reedy tjre...@udel.edu wrote: Nick, I think the first half of your post is one of the clearest expositions yet of 'why Python 3' (in particular, the str to unicode change). It is worthy of wider

[Python-Dev] pip enhancement

2014-08-27 Thread Neal Becker
On systems where os-level packaging is available (e.g., fedora linux), it is not unusual to want a newer python package installed than available from the vendor. pip install --user can be used for this. But then there is the danger that these pip installed packages are not maintained. At

Re: [Python-Dev] pip enhancement

2014-08-27 Thread Skip Montanaro
On Wed, Aug 27, 2014 at 7:58 AM, Neal Becker ndbeck...@gmail.com wrote: On systems where os-level packaging is available (e.g., fedora linux), it is not unusual to want a newer python package installed than available from the vendor. pip install --user can be used for this. How? I have

Re: [Python-Dev] pip enhancement

2014-08-27 Thread Paul Moore
On 27 August 2014 13:58, Neal Becker ndbeck...@gmail.com wrote: At least, pip should have the ability to alert the user to potential updates, pip update could list which packages need updating, and offer to perform the update. I think this would go a long way to helping with this problem.

Re: [Python-Dev] pip enhancement

2014-08-27 Thread Skip Montanaro
On Wed, Aug 27, 2014 at 8:24 AM, Paul Moore p.f.mo...@gmail.com wrote: Do you mean something like pip list --outdated? I was unaware of that command, as we were stuck at pip 1.2.1. I just updated pip manually to 1.5.6. That is a very helpful command. It would be even better if it understood

Re: [Python-Dev] pip enhancement

2014-08-27 Thread Paul Moore
On 27 August 2014 14:46, Skip Montanaro s...@pobox.com wrote: it would be great if there was a way for it to tell me where on my system it found outdated package X. The --verbose flag tells me all sorts of other stuff I'm not really interested in, but not the installed location of the outdated

Re: [Python-Dev] pip enhancement

2014-08-27 Thread Ian Cordasco
On Wed, Aug 27, 2014 at 8:24 AM, Paul Moore p.f.mo...@gmail.com wrote: On 27 August 2014 13:58, Neal Becker ndbeck...@gmail.com wrote: At least, pip should have the ability to alert the user to potential updates, pip update could list which packages need updating, and offer to perform the

Re: [Python-Dev] pip enhancement

2014-08-27 Thread Skip Montanaro
On Wed, Aug 27, 2014 at 9:04 AM, Ian Cordasco graffatcolmin...@gmail.com wrote: Also, isn't this discussion better suited for Distutils-SIG? I started up a thread there. I'd post an archive link, but it hasn't yet turned up in the distutils-sig archive. Skip

Re: [Python-Dev] pip enhancement

2014-08-27 Thread Neal Becker
Wow, I didn't know that existed. Maybe needs to be more obvious. But not quite. It doesn't distinguish between locally installed files, and globally installed. Here, globally installed are maintained by the OS vendor packaging, while locally (user, not virtualenv) installed are managed by pip.

Re: [Python-Dev] Bytes path support

2014-08-27 Thread Glenn Linderman
On 8/27/2014 5:16 AM, Nick Coghlan wrote: On 27 August 2014 08:52, Nick Coghlan ncogh...@gmail.com wrote: On 27 Aug 2014 02:52, Terry Reedy tjre...@udel.edu wrote: Nick, I think the first half of your post is one of the clearest expositions yet of 'why Python 3' (in particular, the str to

Re: [Python-Dev] Bytes path related questions for Guido

2014-08-27 Thread Glenn Linderman
On 8/26/2014 4:31 AM, MRAB wrote: On 2014-08-26 03:11, Stephen J. Turnbull wrote: Nick Coghlan writes: purge_surrogate_escapes was the other term that occurred to me. purge suggests removal, not replacement. That may be useful too. neutralize_surrogate_escapes(s, remove=False,

Re: [Python-Dev] Bytes path support

2014-08-27 Thread Nick Coghlan
On 28 Aug 2014 04:20, Glenn Linderman v+pyt...@g.nevcal.com wrote: On 8/27/2014 5:16 AM, Nick Coghlan wrote: On 27 August 2014 08:52, Nick Coghlan ncogh...@gmail.com wrote: On 27 Aug 2014 02:52, Terry Reedy tjre...@udel.edu wrote: Nick, I think the first half of your post is one of the

Re: [Python-Dev] Bytes path related questions for Guido

2014-08-27 Thread Stephen J. Turnbull
Glenn Linderman writes: On 8/26/2014 4:31 AM, MRAB wrote: On 2014-08-26 03:11, Stephen J. Turnbull wrote: Nick Coghlan writes: How about: replace_surrogate_escapes(s, replacement='\uFFFD') If you want them removed, just pass an empty string as the replacement. That

Re: [Python-Dev] Bytes path support

2014-08-27 Thread Stephen J. Turnbull
Glenn Linderman writes: On 8/27/2014 5:16 AM, Nick Coghlan wrote: Choosing UTF-8 aims to treat formatting text for communication with the user as just a display issue. It's a low impact design that will just work for a lot of software, but it comes at a price: * because

Re: [Python-Dev] Bytes path related questions for Guido

2014-08-27 Thread Glenn Linderman
On 8/27/2014 6:08 PM, Stephen J. Turnbull wrote: Glenn Linderman writes: On 8/26/2014 4:31 AM, MRAB wrote: On 2014-08-26 03:11, Stephen J. Turnbull wrote: Nick Coghlan writes: How about: replace_surrogate_escapes(s, replacement='\uFFFD') If you want them