[Python-Dev] [Python-checkins] cpython: fix compiler warnings (original) (raw)
Victor Stinner victor.stinner at haypocalc.com
Wed Oct 5 01:39:56 CEST 2011
- Previous message: [Python-Dev] [Python-checkins] cpython: fix compiler warnings
- Next message: [Python-Dev] [Python-checkins] cpython: pyexpat uses the new Unicode API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] [Python-checkins] cpython: fix compiler warnings
- Next message: [Python-Dev] [Python-checkins] cpython: pyexpat uses the new Unicode API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]