commit | 743d17e3aa77b84a57531cd74e1daba87132f807 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Sep 15 20:25:57 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Sep 15 20:25:57 1998 +0000 |
tree | 92e69b315a0b005773cd9025fb09f104f16dc216 | |
parent | 0c92000b7a679f1c8add378bb36c6c08efe6f6eb [diff] |
In load_inst(), when instantiating an instance the old way (i.e. when there's an __getinitargs__() method), if a TypeError occurs, catch and reraise it but add info to the error about the class name being instantiated. This makes debugging a lot easier if __getinitargs__() returns something bogus (e.g. a string instead of a singleton tuple).