Python Gotcha with Octal Numbers

Jason Orendorff jason at jorendorff.com
Fri Feb 22 13:58:22 EST 2002


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.

A tuple is particularly swell for version numbers.
See sys.version_info.

## Jason Orendorff    http://www.jorendorff.com/





More information about the Python-list mailing list