Re: [Python-Dev] Module version variable

2011-03-22 Thread Barry Warsaw
On Mar 22, 2011, at 02:38 PM, Guido van Rossum wrote: >All trails eventually lead to Ken! :-) Indeed! -Barry signature.asc Description: PGP signature ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] Module version variable

2011-03-22 Thread Oleg Broytman
On Tue, Mar 22, 2011 at 05:30:09PM -0400, Barry Warsaw wrote: > a file called subproc.py posted to comp.lang.python > by Ken Manheimer. Can you believe - I still use the module?! (-: Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers do

Re: [Python-Dev] Module version variable

2011-03-22 Thread Guido van Rossum
All trails eventually lead to Ken! :-) On Tue, Mar 22, 2011 at 2:30 PM, Barry Warsaw wrote: > On Mar 18, 2011, at 08:50 PM, Guido van Rossum wrote: > >>I do distinctly recall __version__ being standardized for other >>purposes too, but I have no idea how to find that reference... It >>probably wa

Re: [Python-Dev] Module version variable

2011-03-22 Thread Barry Warsaw
On Mar 18, 2011, at 08:50 PM, Guido van Rossum wrote: >I do distinctly recall __version__ being standardized for other >purposes too, but I have no idea how to find that reference... It >probably was well before 2000. FWIW, I went spelunking in my email archives and the earliest reference to __ve

Re: [Python-Dev] Module version variable

2011-03-22 Thread Mark Hammond
On 22/03/2011 8:09 AM, Barry Warsaw wrote: I started an Informational PEP on this at Pycon, and will try to finish a draft of it this week. (I'm claiming 396 for it.) We nearly had a race for that number! FYI, I just checked in pep-0397 leaving 396 for you :) Cheers, Mark _

Re: [Python-Dev] Module version variable

2011-03-21 Thread Barry Warsaw
On Mar 19, 2011, at 01:51 PM, Antoine Pitrou wrote: >On Fri, 18 Mar 2011 20:12:19 -0700 >Toshio Kuratomi wrote: >> There is a section in PEP8 about __version__ but it serves a slightly >> different purpose there: >> >> """ >> Version Bookkeeping >> >> If you have to have Subversion, CVS, or

Re: [Python-Dev] Module version variable

2011-03-21 Thread Barry Warsaw
On Mar 18, 2011, at 07:40 PM, Guido van Rossum wrote: >On Fri, Mar 18, 2011 at 7:28 PM, Greg Ewing >wrote: >> Tres Seaver wrote: >> >>> I'm not even sure why you would want __version__ in 99% of modules:  in >>> the ordinary cases, a module's version should be either the Python >>> version (for

Re: [Python-Dev] Module version variable

2011-03-19 Thread Éric Araujo
> I do distinctly recall __version__ being standardized for other > purposes too, but I have no idea how to find that reference... It > probably was well before 2000. Maybe you were thinking about Pydoc, which will display __version__ in a dedicated section of the doc. Regards ___

Re: [Python-Dev] Module version variable

2011-03-19 Thread Antoine Pitrou
On Fri, 18 Mar 2011 20:12:19 -0700 Toshio Kuratomi wrote: > There is a section in PEP8 about __version__ but it serves a slightly > different purpose there: > > """ > Version Bookkeeping > > If you have to have Subversion, CVS, or RCS crud in your source file, do > it as follows. > >

Re: [Python-Dev] Module version variable

2011-03-18 Thread Guido van Rossum
On Fri, Mar 18, 2011 at 8:12 PM, Toshio Kuratomi wrote: > On Fri, Mar 18, 2011 at 07:40:43PM -0700, Guido van Rossum wrote: >> On Fri, Mar 18, 2011 at 7:28 PM, Greg Ewing >> wrote: >> > Tres Seaver wrote: >> > >> >> I'm not even sure why you would want __version__ in 99% of modules:  in >> >> th

Re: [Python-Dev] Module version variable

2011-03-18 Thread Toshio Kuratomi
On Fri, Mar 18, 2011 at 07:40:43PM -0700, Guido van Rossum wrote: > On Fri, Mar 18, 2011 at 7:28 PM, Greg Ewing > wrote: > > Tres Seaver wrote: > > > >> I'm not even sure why you would want __version__ in 99% of modules:  in > >> the ordinary cases, a module's version should be either the Python

Re: [Python-Dev] Module version variable

2011-03-18 Thread Guido van Rossum
On Fri, Mar 18, 2011 at 7:28 PM, Greg Ewing wrote: > Tres Seaver wrote: > >> I'm not even sure why you would want __version__ in 99% of modules:  in >> the ordinary cases, a module's version should be either the Python >> version (for a module shipped in the stdlib), or the release of the >> distr

Re: [Python-Dev] Module version variable

2011-03-18 Thread Greg Ewing
Tres Seaver wrote: I'm not even sure why you would want __version__ in 99% of modules: in the ordinary cases, a module's version should be either the Python version (for a module shipped in the stdlib), or the release of the distribution which shipped it. It's useful to be able to find out th

Re: [Python-Dev] Module version variable

2011-03-16 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/16/2011 06:15 PM, Eric Smith wrote: > On 3/16/2011 5:54 PM, Alexander Belopolsky wrote: >> On Wed, Mar 16, 2011 at 3:00 PM, Raymond Hettinger >> wrote: >> .. >>> The version number in the decimal module refers to the version of the >>> spec tha

Re: [Python-Dev] Module version variable

2011-03-16 Thread Eric Smith
On 3/16/2011 5:54 PM, Alexander Belopolsky wrote: On Wed, Mar 16, 2011 at 3:00 PM, Raymond Hettinger wrote: .. The version number in the decimal module refers to the version of the spec that is being complied with. I would like that version number to remain in the module. I mentioned this i

Re: [Python-Dev] Module version variable

2011-03-16 Thread Alexander Belopolsky
On Wed, Mar 16, 2011 at 3:00 PM, Raymond Hettinger wrote: .. > The version number in the decimal module refers to the version of the > spec that is being complied with.  I would like that version number > to remain in the module. I mentioned this in my first post. If the version number of the s

Re: [Python-Dev] Module version variable

2011-03-16 Thread Michael Foord
On 16/03/2011 15:00, Raymond Hettinger wrote: On Mar 16, 2011, at 11:33 AM, R. David Murray wrote: On Wed, 16 Mar 2011 13:33:20 -0400, Michael Foord wrote: On 16/03/2011 12:39, Alexander Belopolsky wrote: I was editing the turtle module (for issue11571, if you are interested) when I noticed

Re: [Python-Dev] Module version variable

2011-03-16 Thread Michael Foord
On 16/03/2011 14:33, R. David Murray wrote: On Wed, 16 Mar 2011 13:33:20 -0400, Michael Foord wrote: On 16/03/2011 12:39, Alexander Belopolsky wrote: I was editing the turtle module (for issue11571, if you are interested) when I noticed that it has the following line: _ver = "turtle 1.1b- -

Re: [Python-Dev] Module version variable

2011-03-16 Thread Raymond Hettinger
On Mar 16, 2011, at 11:33 AM, R. David Murray wrote: > On Wed, 16 Mar 2011 13:33:20 -0400, Michael Foord > wrote: >> On 16/03/2011 12:39, Alexander Belopolsky wrote: >>> I was editing the turtle module (for issue11571, if you are >>> interested) when I noticed that it has the following line: >>

Re: [Python-Dev] Module version variable

2011-03-16 Thread R. David Murray
On Wed, 16 Mar 2011 13:33:20 -0400, Michael Foord wrote: > On 16/03/2011 12:39, Alexander Belopolsky wrote: > > I was editing the turtle module (for issue11571, if you are > > interested) when I noticed that it has the following line: > > > > _ver = "turtle 1.1b- - for Python 3.1 - 4. 5. 2009"

Re: [Python-Dev] Module version variable

2011-03-16 Thread Michael Foord
On 16/03/2011 12:39, Alexander Belopolsky wrote: I was editing the turtle module (for issue11571, if you are interested) when I noticed that it has the following line: _ver = "turtle 1.1b- - for Python 3.1 - 4. 5. 2009" unittest also has an outdated (and unmaintained) version number that I

Re: [Python-Dev] Module version variable

2011-03-16 Thread Michael Foord
On 16/03/2011 12:53, Barry Warsaw wrote: On Mar 16, 2011, at 12:39 PM, Alexander Belopolsky wrote: I was editing the turtle module (for issue11571, if you are interested) when I noticed that it has the following line: _ver = "turtle 1.1b- - for Python 3.1 - 4. 5. 2009" This is obviously ou

Re: [Python-Dev] Module version variable

2011-03-16 Thread Barry Warsaw
On Mar 16, 2011, at 12:39 PM, Alexander Belopolsky wrote: >I was editing the turtle module (for issue11571, if you are >interested) when I noticed that it has the following line: > >_ver = "turtle 1.1b- - for Python 3.1 - 4. 5. 2009" > >This is obviously out of date and this variable is not use

[Python-Dev] Module version variable

2011-03-16 Thread Alexander Belopolsky
I was editing the turtle module (for issue11571, if you are interested) when I noticed that it has the following line: _ver = "turtle 1.1b- - for Python 3.1 - 4. 5. 2009" This is obviously out of date and this variable is not used anywhere in the module. I would simply delete it, but I wonder