Re: [Python-ideas] Rewriting the "roundrobin" recipe in the itertools documentation

2017-11-23 Thread Alon Snir
Sorry. Unfortunately I had a mistake. Alon Snir Date: Thu, 23 Nov 2017 12:29:47 +1100 From: Steven D'Aprano To: python-ideas@python.org Subject: Re: [Python-ideas] Rewriting the "roundrobin" recipe in the itertools documentation Message-ID:

Re: [Python-ideas] Allow additional separator character in variables

2017-11-23 Thread Steven D'Aprano
On Thu, Nov 23, 2017 at 02:24:16PM +0900, Stephen J. Turnbull wrote: > Alex Martelli wrote a couple of interesting posts about his > experiences with multilingual comments back in the discussion of PEP > 263. One of them involved a team from Israel, I think, or maybe South > Africa. If you

Re: [Python-ideas] Allow additional separator character in variables

2017-11-23 Thread MRAB
On 2017-11-24 00:49, Steven D'Aprano wrote: On Thu, Nov 23, 2017 at 02:24:16PM +0900, Stephen J. Turnbull wrote: Alex Martelli wrote a couple of interesting posts about his experiences with multilingual comments back in the discussion of PEP 263. One of them involved a team from Israel, I

Re: [Python-ideas] Possible Enhancement to py.exe Python Launcher

2017-11-23 Thread Steve Barnes
Thanks Paul, I had missed that section of PEP-0397 - the only options that are not covered are loading a local configuration from the current directory and the option to set a prompt/error if the python version is not specified on the command line or in the shebang. Sorry for the noise!

Re: [Python-ideas] Adding a thin wrapper class around the functions in stdlib.heapq

2017-11-23 Thread Nick Coghlan
On 23 November 2017 at 17:13, Grant Jenks wrote: > And it will work! The heap algorithm is exposed through a high-level > functional interface so that you can take advantage of duck-typing. This is > an important Python feature. > Nobody is proposing taking the functional

Re: [Python-ideas] Possible Enhancement to py.exe Python Launcher

2017-11-23 Thread Paul Moore
If I understand your proposal correctly, this is already possible, see https://www.python.org/dev/peps/pep-0397/#python-version-qualifiers The details are likely a little different than what you're proposing, but if they don't cover what you're trying to do, maybe you could give a more specific

Re: [Python-ideas] Adding a thin wrapper class around the functions in stdlib.heapq

2017-11-23 Thread Greg Ewing
Grant Jenks wrote: The heap algorithm is exposed through a high-level functional interface so that you can take advantage of duck-typing. This would also be true of a HeapWrapper class that wrapped an existing sequence. There's a difference between the heap functions and sorted(). The latter

[Python-ideas] Possible Enhancement to py.exe Python Launcher

2017-11-23 Thread Steve Barnes
Following on from the discussions on pip I would like to suggest, (and possibly implement), a minor change to the current py.exe python launcher. Currently the launcher, when called without a version specifier, defaults to the highest version on the basis of 3>2, x.11 > x.9, -64 > -32 however

Re: [Python-ideas] Allow additional separator character in variables

2017-11-23 Thread Carl Smith
Can't we just tell everyone to speak US English, and go back to ASCII? It would be a less painful migration. -- Carl Smith carl.in...@gmail.com On 23 November 2017 at 14:16, Chris Angelico wrote: > On Fri, Nov 24, 2017 at 1:10 AM, Mikhail V wrote: > >

Re: [Python-ideas] Allow additional separator character in variables

2017-11-23 Thread Stephan Houben
US English is too broad. I propose everybody talk like in the "Dallas" TV series and wear mandatory cowboy hats. (Or was this mail just a dream?) Stephan 2017-11-23 15:29 GMT+01:00 Carl Smith : > Can't we just tell everyone to speak US English, and go back to ASCII? It

Re: [Python-ideas] Allow additional separator character in variables

2017-11-23 Thread Mikhail V
On Thu, Nov 23, 2017 at 4:46 AM, Nick Coghlan wrote: > On 21 November 2017 at 21:55, Stephen J. Turnbull > wrote: >> >> Personally, I think that Python probably should ban non-ASCII >> non-letter characters in identifiers and whitespace,

Re: [Python-ideas] Allow additional separator character in variables

2017-11-23 Thread Chris Angelico
On Fri, Nov 24, 2017 at 1:10 AM, Mikhail V wrote: > Well, then there is some bitter irony in this, so it allows pretty > much everything, > but does not allow me to beautify code with hyphens. > I can fully understand the wish to use non-latin scripts in strings or >

Re: [Python-ideas] Allow additional separator character in variables

2017-11-23 Thread Steven D'Aprano
On Thu, Nov 23, 2017 at 02:29:43PM +, Carl Smith wrote: > Can't we just tell everyone to speak US English, and go back to ASCII? It > would be a less painful migration. I trust you're joking, but it makes me twitchy to see people saying that even in jest, because I've come across folks who