"Collin Winter" <[EMAIL PROTECTED]> writes:
> Of course, "->" could be DWIMmy, in the sense that it knows whether
> it's being used in a function or generator context.
This would be a bad idea. A function returning a generator of ints is
very different from a function returning an int.
And a function returning a generator because it contains yield
statement has the same interface as the appropriate plain function
which builds an iterator by hand. *These* should be the same.
An iterator is not an int.
--
__("< Marcin Kowalczyk
\__/ [EMAIL PROTECTED]
^^ http://qrnik.knm.org.pl/~qrczak/
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com