sys.maxint in Python 3

castironpi at gmail.com castironpi at gmail.com
Mon Apr 21 19:50:21 EDT 2008


On Apr 21, 5:20 pm, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
> bearophileH... at lycos.com writes:
> > In some algorithms a sentinel value may be useful, so for Python 3.x
>
> Better to just use object() to generate sentinels.

Infinity is a number that compares always like.



More information about the Python-list mailing list