Serhiy Storchaka added the comment:

Perhaps it would be better to raise SystemError for errors in user extensions 
and left assert() only for checking invariants that can't be broken by user 
code. But checking the condition takes time, assert() is cheaper.

Perhaps it would be better to replace some of asserts in non-critical code with 
runtime checks and PyErr_BadArgument()/PyErr_BadInternalCall().

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29941>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to