[Python-Dev] [Python-checkins] cpython: fix compiler warnings

Victor Stinner victor.stinner at haypocalc.com
Wed Oct 5 01:39:56 CEST 2011


Le 05/10/2011 00:30, Vlad Riscutia a écrit :
> Why does the function even return a value? As Benjamin said, it is just
> a bunch of asserts with return 1 at the end.

It's just to be able to write assert(_PyUnicode_CheckConsistency(...)). 
assert() is just used to remove the instruction in release mode.

Victor


More information about the Python-Dev mailing list