problem with change to exceptions

Paul Rubin http
Fri Jul 27 18:55:30 EDT 2007


Neal Becker <ndbecker2 at gmail.com> writes:
> TypeError: 'NoneType' object is not iterable
> I'll have to say, I don't understand this error.

It's "lame duck typing".  The .args attribute on an Exception instance
is expected to be a tuple of the arguments passed through the raise
statement.  It is None if no args were passed.



More information about the Python-list mailing list