[Python-Dev] questionable try/except in anydbm.py (original) (raw)
Martin v. Loewis martin@v.loewis.de
18 Mar 2002 08:32:36 +0100
- Previous message: [Python-Dev] questionable try/except in anydbm.py
- Next message: [Python-Dev] test_anydbm.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Skip Montanaro <skip@pobox.com> writes:
try: class error(Exception): pass except (NameError, TypeError): error = "anydbm.error"
Is this sort of construct really necessary?
Please simplify. If that ever causes an exception, I'd prefer to know about it.
Regards, Martin
- Previous message: [Python-Dev] questionable try/except in anydbm.py
- Next message: [Python-Dev] test_anydbm.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]