[Python-Dev] Adding syntax for units of measure

2009-06-22 Thread Tobias C. Rittweiler
Hi! Has anyone added special syntax to allow writing numeric literals with physical units? So you can write 12m + 34cm, and would get 12.34m. My question is how would you modify the BNF the most sensible way to allow for this? The above example is simple, but think of 42 km/h. (For my purposes,

Re: [Python-Dev] PEP 376

2009-06-22 Thread Kevin Teague
A plural class name looks strange (I think it's the first time I see one in the CPython codebase). How about another name? (DistributionPool, DistributionMap, WorkingSet etc.). Sure, WorkingSet is nice, it's the name used in setuptools, A WorkingSet and a DistributionDirectories (or whate

[Python-Dev] final release procedure

2009-06-22 Thread Benjamin Peterson
Hi everyone, We're almost to the finish line on 3.1! Assuming that the last release blocker [1] gets ironed out and no more rear their ugly heads, I will go ahead. I'm going to freeze and tag the tree on Friday at about 15:00 UTC in order for the binaries to be built and uploaded. The release annou

Re: [Python-Dev] draft pep: backwards compatibility

2009-06-22 Thread Benjamin Peterson
2009/6/20 Collin Winter : > Is this intended to include performance changes? Clearly no-one will > complain if things simply get faster, but I'm thinking about cases > where, say, a function runs in half the time but uses double the > memory (or vice versa). I don't think we can say anything about

Re: [Python-Dev] PEP 376

2009-06-22 Thread P.J. Eby
At 05:42 PM 6/22/2009 +0200, Tarek Ziadé wrote: Wouldn't it be better to use the native line terminator on the current platform? (someone might want to edit or at least view the file) Good idea, I'll change that, As long as the file is always *read* with "U" mode, so that you can't mess it

Re: [Python-Dev] PEP 376

2009-06-22 Thread Tarek Ziadé
On Mon, Jun 22, 2009 at 4:59 PM, Antoine Pitrou wrote: > - the **MD5** hash of the file, encoded in hex. Notice that `pyc` and > `pyo` >generated files will not have a hash. > > Why the exception for pyc and pyo files? As in PEP 262, since they are produced automatically from a py file, c

Re: [Python-Dev] PEP 376

2009-06-22 Thread Antoine Pitrou
Hello, Tarek Ziadé gmail.com> writes: > > so I am mailing it here again, for a new round of feedback, if needed. > > - the pep : http://svn.python.org/projects/peps/trunk/pep-0376.txt Some comments: - the **MD5** hash of the file, encoded in hex. Notice that `pyc` and `pyo` generated f

[Python-Dev] PEP 376

2009-06-22 Thread Tarek Ziadé
Hello, We have polished out PEP 376 and its code prototype at Distutils-SIG. It seems to fullfill now all the requirements, so I am mailing it here again, for a new round of feedback, if needed. - the pep : http://svn.python.org/projects/peps/trunk/pep-0376.txt - the code prototype : http://bit

Re: [Python-Dev] Migration strategy for new-style string formatting [Was: Binary Operator for New-Style String Formatting]

2009-06-22 Thread James Y Knight
On Jun 21, 2009, at 5:40 PM, Eric Smith wrote: I've basically come to accept that %-formatting can never go away, unfortunately. There are too many places where %-formatting is used, for example in logging Formatters. %-formatting either has to exist or it has to be emulated. It'd possibly