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/2011-July/112207.html below:

replace assertions by explicit if+raise

[Python-Dev] cpython: Issue #12469: replace assertions by explicit if+raise [Python-Dev] cpython: Issue #12469: replace assertions by explicit if+raiseAntoine Pitrou solipsis at pitrou.net
Mon Jul 4 18:23:44 CEST 2011
On Mon, 04 Jul 2011 18:06:53 +0200
victor.stinner <python-checkins at python.org> wrote:
> http://hg.python.org/cpython/rev/7eef821ab20d
> changeset:   71197:7eef821ab20d
> user:        Victor Stinner <victor.stinner at haypocalc.com>
> date:        Mon Jul 04 18:06:35 2011 +0200
> summary:
>   Issue #12469: replace assertions by explicit if+raise

Instead of generic Exception, it would be better to use AssertionError.

Regards

Antoine.


More information about the Python-Dev mailing list

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