[Distutils] RFC : Version comparison
Trent Mick
trentm at gmail.com
Tue Apr 28 01:25:34 CEST 2009
[Tarek]
>>> Sounds good, I'd be in favor of making RationalVersion using explicit
>>> version bits,
>>> and having some kind of function:
>>>
>>> str2version(somestring) -> RationalVersion instance
[Trent]
>> Or we could have:
>>
>> RationalVersion(...version bits...)
>> RationalVersion.from_string(s) # this is a @classmethod
[Tres]
> I would prefer keeping the string version of __init__, with the "I'm in
> control, dammit" version reserved for the non-default factory method.
I'd tend to agree, but I don't feel strongly about it.
Tarek,
Why would you prefer the default constructor argument be the version bits form.
Trent
--
Trent Mick
trentm at gmail.com
More information about the Distutils-SIG
mailing list