[Python-Dev] PEP 396, Module Version Numbers

Antoine Pitrou solipsis at pitrou.net
Thu Apr 7 13:51:48 CEST 2011


On Thu, 07 Apr 2011 12:10:59 +0100
Michael Foord <fuzzyman at voidspace.org.uk> wrote:
> On 06/04/2011 15:26, Nick Coghlan wrote:
> > On Wed, Apr 6, 2011 at 6:22 AM, Glenn Linderman<v+python at g.nevcal.com>  wrote:
> >> With more standardization of versions, should the version module be promoted
> >> to stdlib directly?
> > When Tarek lands "packaging" (i.e. what distutils2 becomes in the
> > Python 3.3 stdlib), the standardised version handling will come with
> > it.
> >
> >> On 4/5/2011 11:52 AM, Barry Warsaw wrote:
> >>
> >>      DEFAULT_VERSION_RE = re.compile(r'(?P<version>\d+\.\d(?:\.\d+)?)')
> >>
> >>      __version__ = pkgutil.get_distribution('elle').metadata['version']
> >>
> 
> I really dislike this way of specifying the version. For a start it is 
> really ugly.

Agreed, it is incredibly obscure and unpleasantly opaque.

Regards

Antoine.




More information about the Python-Dev mailing list