On Mon, 04 Jul 2011 18:06:53 +0200
victor.stinner <[email protected]> wrote:
> http://hg.python.org/cpython/rev/7eef821ab20d
> changeset:   71197:7eef821ab20d
> user:        Victor Stinner <[email protected]>
> 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.


_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to