problem with change to exceptions
Neal Becker
ndbecker2 at gmail.com
Fri Jul 27 18:49:17 EDT 2007
More information about the Python-list mailing list
Fri Jul 27 18:49:17 EDT 2007
- Previous message (by thread): problem with change to exceptions
- Next message (by thread): problem with change to exceptions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
import exceptions
class nothing (exceptions.Exception):
def __init__ (self, args=None):
self.args = args
if __name__ == "__main__":
raise nothing
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/tmp/python-3143hDH", line 5, in __init__
self.args = args
TypeError: 'NoneType' object is not iterable
I'll have to say, I don't understand this error.
- Previous message (by thread): problem with change to exceptions
- Next message (by thread): problem with change to exceptions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list