Re: [Python-Dev] Needed reviews

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

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.

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

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 storch...@gmail.com 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

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 -m

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

2015-03-22 Thread Nick Coghlan
On 22 March 2015 at 04:47, Terry Reedy tjre...@udel.edu wrote: On 3/21/2015 12:41 AM, Serhiy Storchaka wrote: How to document functions with optional positional parameters? For example binascii.crc32(). It has two positional parameters, one is mandatory, and one is optional with default

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

2015-03-22 Thread Glenn Linderman
On 3/21/2015 10:46 PM, pedro santos wrote: Hi, I'm an Art and CG student learning Python and today's exercise was about positions in a tiled room. The fact that I had to check if a position was inside the room and given that in a 1x1 room, 0.0 was considered in and 1.0 was considered out, it

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

2015-03-22 Thread Nick Coghlan
On 22 March 2015 at 07:46, Barry Warsaw ba...@python.org wrote: On Mar 21, 2015, at 05:00 PM, Donald Stufft wrote: I sort of think (though I haven’t completely convinced myself) that adding something like __version__ to a package is a work around to the fact that we don’t have an API that lets

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 ianlee1...@gmail.com 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