Python Gotcha with Octal Numbers
Grant Edwards
grante at visi.com
Fri Feb 22 17:01:54 EST 2002
In article <mailman.1014404689.32639.python-list at python.org>, Jason Orendorff wrote:
> Grant Edwards wrote:
>> I just got bit by the leading-zero thing again about 10 minutes
>> ago when I changed the minor version number of something from 07
>> to 08. Had to skip from 1.07 to 1.10...
>
> Serves you right. Version numbers like 1.07 are silly.
> 1.0.7 or 1.7 would be more sensible.
Probably so, but the "official" method enshrined in the ECO database design
and procedures and whatnot is M.NN.
> A tuple is particularly swell for version numbers.
> See sys.version_info.
--
Grant Edwards grante Yow! The LOGARITHM of
at an ISOCELES TRIANGLE is
visi.com TUESDAY WELD!!
More information about the Python-list
mailing list