Flying With Python (Strong versus Weak Typing)

Greg Ewing (using news.cis.dfn.de) me at privacy.net
Thu Mar 13 01:13:59 CET 2003


Dennis Lee Bieber wrote:
>         This fault (#6) would be the Python equivalent of not wrapping the 
> conversion with a try/except block; something that the language doesn't 
> require.

If they'd used a recent enough Python, the result
would have been promoted to a long, and the exception
wouldn't have occurred in the first place. :-)

Unless the extra memory required caused a
MemoryError... :-(

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg





More information about the Python-list mailing list