[Python-Dev] (#19562) Asserts in Python stdlib code (datetime.py) (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Sat Nov 16 16:09:23 CET 2013


On 16 November 2013 23:17, Maciej Fijalkowski <fijall at gmail.com> wrote:

On Sat, Nov 16, 2013 at 3:51 AM, Terry Reedy <tjreedy at udel.edu> wrote:

If user input can trigger an assert, then the code should raise a normal exception that will not disappear with -OO. May I assert that -OO should instead be killed?

"I don't care about embedded devices" is not a good rationale for killing features that really only benefit people running Python on such systems.

Cheers, Nick.

-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia



More information about the Python-Dev mailing list