[Python-Dev] infinities

Fredrik Lundh fredrik at pythonware.com
Sun Nov 26 18:13:16 CET 2006


tomer filiba wrote:
> no, it requires *infinity* to accomplish x - y == x; y != 0, for example:
>> while limit > 0:
> limit -= len(chunk)
>> with limit = posinf, the above code should be equivalent to "while True".

that's a remarkably stupid way to count bytes. if you want to argue for 
additions to the language, you could at least bother to come up with a 
sane use case.
</F>


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /