This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Thomas Wouters, gregory.p.smith, serhiy.storchaka, tim.peters, twouters, vstinner
Date 2017-03-30.05:39:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490852350.01.0.850148313834.issue29941@psf.upfronthosting.co.za>
In-reply-to
Content
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().
History
Date User Action Args
2017-03-30 05:39:10serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, twouters, gregory.p.smith, vstinner, Thomas Wouters
2017-03-30 05:39:10serhiy.storchakasetmessageid: <1490852350.01.0.850148313834.issue29941@psf.upfronthosting.co.za>
2017-03-30 05:39:10serhiy.storchakalinkissue29941 messages
2017-03-30 05:39:09serhiy.storchakacreate