On Sat, Jan 25, 2020 at 9:40 AM Tim Peters <tim.pet...@gmail.com> wrote:
> I think it needs more words, though, to flesh out what about this is
> allowed by the language (as opposed to what CPython happens to do),
> and to get closer to what Guido is trying to get at with his
> "*implicit* calls".  For example, it's at work here, but there's not a
> built-in container in sight:
>
> >>> import math
> >>> def f():
> ...     while True:
> ...         yield math.nan
> >>> math.nan in f()
> True
>

The iterator/generator is behaving the way a lazy container would, so
it's fairly unsurprising. Perhaps "container-like objects"?

ChrisA
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/LP6VL2GQZKOQEA4ZLLXKPB25IOSI6PHY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to