[Python-Dev] PEP 0424: A method for exposing a length hint

Serhiy Storchaka storchaka at gmail.com
Mon Jul 16 11:42:09 CEST 2012


On 16.07.12 10:36, Stefan Behnel wrote:
> Return values could be -1 for "don't know" and -2 for "infinite" at the C
> level, and NotImplemented for "don't know" at the Python level.

PY_SSIZE_T_MAX is better value for "infinite". In any case no difference 
for consumer between PY_SSIZE_T_MAX and a real infinity.



More information about the Python-Dev mailing list