[Distutils] RFC : Version comparison

Tres Seaver tseaver at palladion.com
Mon Apr 27 20:16:33 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Trent Mick wrote:
>>>  Can a constructor which takes each part of the version data
>>> as a separate object be added?
>> Sounds good, I'd be in favor of making RationalVersion using explicit
>> version bits,
>> and having some kind of function:
>>
>> str2version(somestring) -> RationalVersion instance
> 
> Or we could have:
> 
>    RationalVersion(...version bits...)
>    RationalVersion.from_string(s)      # this is a @classmethod

I would prefer keeping the string version of __init__, with the "I'm in
control, dammit" version reserved for the non-default factory method.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ9faB+gerLs4ltQ4RAsGtAJ9p6z3WjdM8AxLs6kfBgxcHOuheHQCeNSra
JXKlglWpco8D1uFhSj0CLcA=
=EdQY
-----END PGP SIGNATURE-----



More information about the Distutils-SIG mailing list