April 27, 2009
11:25 p.m.
[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@gmail.com