[Python-ideas] Infinite in Python (not just in datetime)

random832 at fastmail.us random832 at fastmail.us
Mon Feb 2 20:32:31 CET 2015


On Mon, Feb 2, 2015, at 10:27, Thomas Güttler wrote:
> > Infinite what?
> 
> Integer
> 
> A infinite timedelta could be created like this:
> 
> datetime.timedelta(days=infinite)
> 
>    Thomas Güttler

You'd still have to decide how to represent it, since timedelta doesn't
internally use PyLongObject. (I've asked why these types don't support
the unbounded range of integers before, and was told "YAGNI".)


More information about the Python-ideas mailing list