Re: [Python-Dev] Use ptyhon -s as default shbang for system python executables/daemons

2015-03-22 Thread Cameron Simpson
On 21Mar2015 14:29, Donald Stufft wrote: On Mar 21, 2015, at 7:52 AM, Nick Coghlan wrote: On 19 March 2015 at 07:51, Donald Stufft wrote: I’ve long wished that the OS had it’s own virtual environment. A lot of problems seems to come from trying to cram the things the OS wants with the things

Re: [Python-Dev] Installing Python to non-ASCII paths

2015-03-22 Thread Glenn Linderman
On 3/22/2015 8:12 AM, Tim Golden wrote: I'll create a £££ user (which is the easiest non-ASCII name to create on a UK keyboard) to see how cleanly the latest installer works. You can also copy/paste. A path with a Cyrillic, Greek, Chinese, Tibetan, Japanese, Armenian, and Romanian character,

Re: [Python-Dev] Installing Python to non-ASCII paths

2015-03-22 Thread Nick Coghlan
On 23 Mar 2015 00:45, "Paul Moore" wrote: > > Something that hit me today, which might become a more common issue > when the Windows installers move towards installing to the user > directory, is that there appear to be some bugs in handling of > non-ASCII paths. > > Two that I spotted are a failu

Re: [Python-Dev] some minor questions about pep8

2015-03-22 Thread Guido van Rossum
On Fri, Mar 20, 2015 at 9:24 PM, Ian Lee wrote: > Guido, > > In that case would you be open to a patch to update the PEP accordingly? > Only if it totally eradicate __version__ and similar from the PEP. > Additionally, does that official statement cover other dunder assignments > (e.g. "__autho

Re: [Python-Dev] Needed reviews

2015-03-22 Thread Nick Coghlan
On 22 Mar 2015 19:22, "Serhiy Storchaka" wrote: > > On 21.03.15 13:46, Nick Coghlan wrote: >> >> On 19 March 2015 at 19:28, Serhiy Storchaka wrote: >>> >>> Here is list of my ready for review patches. It is incomplete and contains >>> only patches for which I don't expect objections or long disc

Re: [Python-Dev] Installing Python to non-ASCII paths

2015-03-22 Thread Paul Moore
On 22 March 2015 at 19:34, Victor Stinner wrote: > Please open an issue, I can take a look. Please describe a scenario to > reproduce the issue. The "issue" with the launcher seems to have bee a red herring. When I set up a test case properly, it worked. I suspect I messed up writing the shebang

Re: [Python-Dev] Installing Python to non-ASCII paths

2015-03-22 Thread Victor Stinner
Hi Paul, Please open an issue, I can take a look. Please describe a scenario to reproduce the issue. Victor 2015-03-22 15:44 GMT+01:00 Paul Moore : > Something that hit me today, which might become a more common issue > when the Windows installers move towards installing to the user > directory,

Re: [Python-Dev] Request for comments: [issue22941] IPv4Interface arithmetic changes subnet mask

2015-03-22 Thread Søren Løvborg
Thanks for the feedback, and apologies for my late reply. I have to say, I'm not entirely sold on the argument for raising an exception on subnet "overflow". First, I'll note what happens if we overflow an IPv4Address: >>> ipaddress.IPv4Address('255.255.255.255') + 1 Traceback (most re

Re: [Python-Dev] Installing Python to non-ASCII paths

2015-03-22 Thread Tim Golden
On 22/03/2015 15:12, Tim Golden wrote: On 22/03/2015 14:44, Paul Moore wrote: On which note, I'm assuming neither of the issues I've found are major blockers. "pip.exe doesn't work if Python is installed in a directory with non-ASCII characters in the name" can be worked around by using python -

Re: [Python-Dev] Installing Python to non-ASCII paths

2015-03-22 Thread Tim Golden
On 22/03/2015 14:44, Paul Moore wrote: On which note, I'm assuming neither of the issues I've found are major blockers. "pip.exe doesn't work if Python is installed in a directory with non-ASCII characters in the name" can be worked around by using python -m pip, and the launcher issue by using a

[Python-Dev] Installing Python to non-ASCII paths

2015-03-22 Thread Paul Moore
Something that hit me today, which might become a more common issue when the Windows installers move towards installing to the user directory, is that there appear to be some bugs in handling of non-ASCII paths. Two that I spotted are a failure of the "script wrappers" installed by pip to work wit

Re: [Python-Dev] 0-base and 1-base indexed iterables? Custom slicing rules?

2015-03-22 Thread Stefan Richthofer
Pascal allows to define custom indexing. The indexes are defined on array declaration myArray : Array[1..5] of Integer; see http://pascal-programming.info/lesson10.php However, in pascal array-size must be set at compile time, wich is rather annoying, but allows for some optimizations.   Visua

Re: [Python-Dev] Needed reviews

2015-03-22 Thread Serhiy Storchaka
On 21.03.15 13:46, Nick Coghlan wrote: On 19 March 2015 at 19:28, Serhiy Storchaka wrote: Here is list of my ready for review patches. It is incomplete and contains only patches for which I don't expect objections or long discussion. Most of them are relative easy and need only formal review.

Re: [Python-Dev] How to document functions with optional positional parameters?

2015-03-22 Thread Serhiy Storchaka
On 21.03.15 13:03, Victor Stinner wrote: The \ is useful, it indicates that you cannot use keywords. Wouldn't it confuse users? If you want to drop \, modify the function to accept keywords. Yes, this is a solution. But parsing keyword arguments is slower than parsing positional arguments.