RE: dealing with infinite generators

2018-12-03 Thread Avi Gross
Cc: python-list@python.org Subject: Re: dealing with infinite generators On Mon, Dec 3, 2018 at 8:11 AM Avi Gross mailto:avigr...@verizon.net> > wrote: [SPECULATION ALERT] I found it interesting as people discussed how one gets the length of something set up to follow the iterator pro

dealing with infinite generators

2018-12-02 Thread Avi Gross
[SPECULATION ALERT] I found it interesting as people discussed how one gets the length of something set up to follow the iterator protocol and especially anything that is effectively infinite. It is possible in python to set a value of "inf" using methods like this: >>> x = float("inf") >>> x i