Python Gotcha with Octal Numbers

Simon Brunning SBrunning at trisystems.co.uk
Wed Feb 13 09:40:59 EST 2002


> From:	Christopher.Saunter at durham.ac.uk
> [SMTP:Christopher.Saunter at durham.ac.uk]
> It all stems to this, I was assigning to numbers to variables:
> 
> var1 = 1000
> var2 = 0100
> etc.
 
See <http://mindprod.com/unmain.html> - Coding Obfuscation, point 11. (About
halfway down.)

Nice to know that you can write unmaintainable code in Python, too.

Probably to late to do anything about it now - think of all the code which
would break!

Cheers,
Simon Brunning.
sbrunning at fuckmicrosoft.com




-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.




More information about the Python-list mailing list