Yury Selivanov wrote:
- If it's an object with __await__, return iter(object.__await__())

Is the iter() really needed? Couldn't the contract of
__await__ be that it always returns an iterator?

--
Greg
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to