On Thu, 07 Apr 2011 12:10:59 +0100 Michael Foord <fuzzy...@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+pyt...@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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com