[Python-Dev] PEP 396, Module Version Numbers (original) (raw)

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: >> >> DEFAULTVERSIONRE = re.compile(r'(?P\d+.\d(?:.\d+)?)') >> >> version = pkgutil.getdistribution('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