[Python-Dev] assert(blah blah) in the C code base

Benjamin Peterson benjamin at python.org
Sat Dec 28 02:53:08 CET 2013

2013/12/27 Ethan Furman <ethan at stoneleaf.us>:
> Greetings!
> I'm working on Issue19995, and I'm seeing stuff like this:
>   assert(PyLong_Check(val));
> My question is:  Are these asserts in final production code?

They are compiled in when --with-pydebug is passed to configure. They
should "never" fail.


More information about the Python-Dev mailing list