A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-March/021317.html below:

[Python-Dev] questionable try/except in anydbm.py

[Python-Dev] questionable try/except in anydbm.py [Python-Dev] questionable try/except in anydbm.pyMartin v. Loewis martin@v.loewis.de
18 Mar 2002 08:32:36 +0100
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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4