Re: [Python-Dev] Pronouncement on PEP 389: argparse?

2009-12-27 Thread anatoly techtonik
On Tue, Dec 15, 2009 at 12:37 AM, Steven Bethard steven.beth...@gmail.com wrote: If you're only concerned about 2.X, then yes, optparse will *never* be removed from 2.X. There will be a deprecation note in the 2.X documentation but deprecation warnings will only be issued when the -3 flag is

Re: [Python-Dev] Pronouncement on PEP 389: argparse?

2009-12-27 Thread Steven Bethard
On Sun, Dec 27, 2009 at 9:51 AM, anatoly techtonik techto...@gmail.com wrote: On Tue, Dec 15, 2009 at 12:37 AM, Steven Bethard steven.beth...@gmail.com wrote: If you're only concerned about 2.X, then yes, optparse will *never* be removed from 2.X. There will be a deprecation note in the 2.X

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Tarek Ziadé
On Fri, Dec 25, 2009 at 8:33 AM, Nick Coghlan ncogh...@gmail.com wrote: Martin v. Löwis wrote: I'll remove it and push it in Distutils documentation, then might just provide a link in the PEP References. That sounds fine to me. That would address my questions as well - someone looking for a

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread david . lyon
On Fri, Dec 25, 2009 at 8:33 AM, Nick Coghlan ncogh...@gmail.com wrote: Martin v. Löwis wrote: FYI we have introduced a range operator, so one may define a range of versions. This is useful for instance to write: Requires-Python: ~=2.5 Which means: requires any version of Python 2.5.x.

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Tarek Ziadé
On Mon, Dec 28, 2009 at 1:15 AM, david.l...@preisshare.net wrote: On Fri, Dec 25, 2009 at 8:33 AM, Nick Coghlan ncogh...@gmail.com wrote: Martin v. Löwis wrote: FYI we have introduced a range operator, so one may define a range of versions. This is useful for instance to write:  

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Sridhar Ratnakumar
On 12/27/2009 4:15 PM, david.l...@preisshare.net wrote: On Fri, Dec 25, 2009 at 8:33 AM, Nick Coghlanncogh...@gmail.com wrote: Martin v. Löwis wrote: FYI we have introduced a range operator, so one may define a range of versions. This is useful for instance to write:

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Antoine Pitrou
Tarek Ziadé ziade.tarek at gmail.com writes: This was ambiguous because it was unclear, as MvL stated, if 2.5 was just 2.5.0 or included versions like 2.5.1 or 2.5.2. How about having 2.5 match all 2.5.x versions, and 2.5.0 match only 2.5 itself? (ditto for 2.5.N matching only 2.5.N for N =

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Tarek Ziadé
On Mon, Dec 28, 2009 at 1:41 AM, Sridhar Ratnakumar sridh...@activestate.com wrote: [..] Tarek, I am a bit confused at the current proposal combined with the newly introduced range operator. Would Requires-Python: =2.5 include 2.5.4 or not? =2.5 means any version that is inferior or equal

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Martin v. Löwis
No application developer will quickly figure out what a tilde means. Maybe it means 'roughly', but it requires too much thought and is ambiguous. 2.5 is not roughly 2.5.2. It is the same exactly. Before we had : Requires-Python: 2.5, 2.6 That made much more sense. It was simple and

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Tarek Ziadé
On Mon, Dec 28, 2009 at 1:48 AM, Antoine Pitrou solip...@pitrou.net wrote: Tarek Ziadé ziade.tarek at gmail.com writes: This was ambiguous because it was unclear, as MvL stated,  if 2.5 was just 2.5.0 or included versions like 2.5.1 or 2.5.2. How about having 2.5 match all 2.5.x versions,

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Ben Finney
Tarek Ziadé ziade.ta...@gmail.com writes: FYI we have introduced a range operator, so one may define a range of versions. This is useful for instance to write: Requires-Python: ~=2.5 Which means: requires any version of Python 2.5.x. -1 on that syntax. It's an extra operator, with a

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Martin v. Löwis
Tarek Ziadé wrote: On Mon, Dec 28, 2009 at 1:48 AM, Antoine Pitrou solip...@pitrou.net wrote: Tarek Ziadé ziade.tarek at gmail.com writes: This was ambiguous because it was unclear, as MvL stated, if 2.5 was just 2.5.0 or included versions like 2.5.1 or 2.5.2. How about having 2.5 match all

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Ben Finney
Tarek Ziadé ziade.ta...@gmail.com writes: On Mon, Dec 28, 2009 at 1:41 AM, Sridhar Ratnakumar sridh...@activestate.com wrote: Also, Requires-Python: 3 would include all 3.X versions, correct? Correct, because, Requires-Python: 3 is equivalent to Requires-Python: ~= 3 which is equivalent to

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread MRAB
Tarek Ziadé wrote: On Mon, Dec 28, 2009 at 1:41 AM, Sridhar Ratnakumar sridh...@activestate.com wrote: [..] Tarek, I am a bit confused at the current proposal combined with the newly introduced range operator. Would Requires-Python: =2.5 include 2.5.4 or not? =2.5 means any version that is

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Arfrever Frehtes Taifersar Arahesis
2009-12-28 02:17:22 Ben Finney napisał(a): Tarek Ziadé ziade.ta...@gmail.com writes: On Mon, Dec 28, 2009 at 1:41 AM, Sridhar Ratnakumar sridh...@activestate.com wrote: Also, Requires-Python: 3 would include all 3.X versions, correct? Correct, because, Requires-Python: 3 is

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread MRAB
Ben Finney wrote: Tarek Ziadé ziade.ta...@gmail.com writes: On Mon, Dec 28, 2009 at 1:41 AM, Sridhar Ratnakumar sridh...@activestate.com wrote: Also, Requires-Python: 3 would include all 3.X versions, correct? Correct, because, Requires-Python: 3 is equivalent to Requires-Python: ~= 3 which

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Fred Drake
On Sun, Dec 27, 2009 at 8:28 PM, Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com wrote: 'Requires-Python: 3*' (or '3.*') would be better than 'Requires-Python: =3, 4'. Maybe. MRAB wrote: Requires-Python: 3 ~ 4 Ugh. -1 -Fred -- Fred L. Drake, Jr.fdrake at gmail.com

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread sstein...@gmail.com
On Dec 27, 2009, at 8:02 PM, Tarek Ziadé wrote: On Mon, Dec 28, 2009 at 1:48 AM, Antoine Pitrou solip...@pitrou.net wrote: Tarek Ziadé ziade.tarek at gmail.com writes: This was ambiguous because it was unclear, as MvL stated, if 2.5 was just 2.5.0 or included versions like 2.5.1 or

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Sridhar Ratnakumar
On 12/27/2009 5:21 PM, MRAB wrote: Tarek Ziadé wrote: On Mon, Dec 28, 2009 at 1:41 AM, Sridhar Ratnakumar sridh...@activestate.com wrote: [..] Tarek, I am a bit confused at the current proposal combined with the newly introduced range operator. Would Requires-Python: =2.5 include 2.5.4 or

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread MRAB
Martin v. Löwis wrote: No application developer will quickly figure out what a tilde means. Maybe it means 'roughly', but it requires too much thought and is ambiguous. 2.5 is not roughly 2.5.2. It is the same exactly. Before we had : Requires-Python: 2.5, 2.6 That made much more sense. It was

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread MRAB
Arfrever Frehtes Taifersar Arahesis wrote: 2009-12-28 02:17:22 Ben Finney napisał(a): Tarek Ziadé ziade.ta...@gmail.com writes: On Mon, Dec 28, 2009 at 1:41 AM, Sridhar Ratnakumar sridh...@activestate.com wrote: Also, Requires-Python: 3 would include all 3.X versions, correct? Correct,

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Stephen J. Turnbull
Ben Finney writes: Instead, the default should be `=='. That is, `Requires-Python: 3' should be equivalent to `Requires-Python: ==3'; and only 3 or 3.0 or 3.0.0 etc. will match. I maintain that is what most people will expect on seeing that syntax. I really don't think your assessment

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread david . lyon
No application developer will quickly figure out what a tilde means. Maybe it means 'roughly', but it requires too much thought and is ambiguous. 2.5 is not roughly 2.5.2. It is the same exactly. Before we had : Requires-Python: 2.5, 2.6 That made much more sense. It was simple and

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread david . lyon
Instead, the default should be ‘==’. That is, ‘Requires-Python: 3’ should be equivalent to ‘Requires-Python: ==3’; and only “3” or “3.0” or “3.0.0” etc. will match. I maintain that is what most people will expect on seeing that syntax. If a less strict range is

Re: [Python-Dev] Disallow float arguments where an integer is expected in Python 2.7.

2009-12-27 Thread Gregory P. Smith
On Mon, Dec 21, 2009 at 7:02 AM, Mark Dickinson dicki...@gmail.com wrote: In Python 2.7, PyArg_ParseTuple and friends currently accept a float argument where an integer is expected, but produce a DeprecationWarning in this case.  This can be seen in various places in Python proper:

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Terry Reedy
On 12/27/2009 7:48 PM, Antoine Pitrou wrote: Tarek Ziadéziade.tarekat gmail.com writes: This was ambiguous because it was unclear, as MvL stated, if 2.5 was just 2.5.0 or included versions like 2.5.1 or 2.5.2. How about having 2.5 match all 2.5.x versions, and 2.5.0 match only 2.5 itself?

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread david . lyon
Tarek Ziadé ziade.tarek at gmail.com writes: An implicit range operator is simpler indeed, and achieves the same goal. Meaning that =2.5 for example, will be translated to =2.5.x as well. With respect, it's not a very common use case for a developer to say that package needs a python

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Terry Reedy wrote: On 12/27/2009 7:48 PM, Antoine Pitrou wrote: Tarek Ziadéziade.tarekat gmail.com writes: This was ambiguous because it was unclear, as MvL stated, if 2.5 was just 2.5.0 or included versions like 2.5.1 or 2.5.2. How about

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Stephen J. Turnbull
david.l...@preisshare.net writes: Before we had : Requires-Python: 2.5, 2.6 That made much more sense. It was simple and unambiguous, and is relevant to typical packaging scenarios. Unfortunately, it is fairly ambiguous, and makes no sense. It means requires Python 2.5 *AND*

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tarek Ziadé wrote: On Mon, Dec 28, 2009 at 1:41 AM, Sridhar Ratnakumar sridh...@activestate.com wrote: [..] Tarek, I am a bit confused at the current proposal combined with the newly introduced range operator. Would Requires-Python: =2.5

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Lennart Regebro
On Mon, Dec 28, 2009 at 05:37, Terry Reedy tjre...@udel.edu wrote: If the first x.y release were called x.y.0, (does not sys.version include 0?) then x.y would unambiguously mean the series. Yeah, well, although sys.version includes the zero, nothing else does. The first releases are called

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Stephen J. Turnbull
david.l...@preisshare.net writes: With respect, it's not a very common use case for a developer to say that package needs a python interpretor 'older' than 2.5. Of course it is. I don't claim it is the majority of cases out there, but stable versions of many of the packages I use will

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread Antoine Pitrou
And in fact this case is often more the important one. Packages that depend on having a *recent* version of python will often crash quickly, before doing permanent damage, when an undefined syntax, function, or method is invoked, while packages that depend on a quirk in behavior of an older

Re: [Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

2009-12-27 Thread david . lyon
david.l...@preisshare.net writes: With respect, it's not a very common use case for a developer to say that package needs a python interpretor 'older' than 2.5. Of course it is. I don't claim it is the majority of cases out there, but stable versions of many of the packages I use will