[Python-Dev] Module version variable (original) (raw)
Barry Warsaw barry at python.org
Mon Mar 21 22:09:41 CET 2011
- Previous message: [Python-Dev] Module version variable
- Next message: [Python-Dev] Module version variable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mar 18, 2011, at 07:40 PM, Guido van Rossum wrote:
On Fri, Mar 18, 2011 at 7:28 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> 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 distribution which shipped it. It's useful to be able to find out the version of a module you're using at run time so you can cope with API changes. I had a case just recently where the behaviour of something in pywin32 changed between one release and the next. I looked for an attribute called 'version' or something similar to test, but couldn't find anything. +1 on having a standard place to look for version info. I believe version is the standard (like author). IIRC it was proposed by Ping. I think this convention is so old that there isn't a PEP for it. So yes, we might as well write it down. But it's really nothing new.
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.)
-Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http://mail.python.org/pipermail/python-dev/attachments/20110321/4118c544/attachment.pgp>
- Previous message: [Python-Dev] Module version variable
- Next message: [Python-Dev] Module version variable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]