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

Ethan Furman ethan at stoneleaf.us
Sat Dec 28 01:53:33 CET 2013


I'm working on Issue19995, and I'm seeing stuff like this:


My question is:  Are these asserts in final production code?

My possible scenarios are:

   - the assert isn't in place
   - the assert isn't working correctly
   - PyLong_Check isn't working correctly
   - the non-ints are being converted before the function
     containing the assert is called

The fourth possibility is the most likely, but since I don't know how 
assert() works in C I can't be sure.

Any quick pointers?


More information about the Python-Dev mailing list