[Tutor] Multifunction mapping
Remco Gerlich
scarblac@pino.selwerd.nl
Wed, 1 May 2002 19:01:59 +0200
On 0, alan.gauld@bt.com wrote:
> > (061,062,063,064,065,066,067,068,069)
> and these must be strings since the leading
> zero has no significance for an int...?
If only that were true.
Python still has the moronic syntax from the C world, where a literal with a
leading 0 is considered to be in octal (which sometimes leads to weird bugs).
>>> 067
55
067 is 6*8+7 = 55, while 068 is actually a syntax error.
But I think he meant strings, yes. :-)
--
Remco Gerlich