[Python-Dev] iterators and extended function call syntax (WAS: Replacement for print in Python 3.0)

Guido van Rossum guido at python.org
Sat Sep 3 19:32:07 CEST 2005


On 9/3/05, Steven Bethard <steven.bethard at gmail.com> wrote:
> Nick Coghlan wrote:
> > I actually hope that extended function call syntax in Py3k will
> > use iterators rather than tuples so that this problem goes away.
> 
> I suggested this a while back on the Python list:
>     http://mail.python.org/pipermail/python-list/2004-December/257282.html
> 
> Raymond Hettinger brought up a few pretty valid complaints,
[...]

What he said. There's no way this is going to happen. If you want to
have a function that takes an iterator and you want to pass it an
iterator, just do that -- don't use the *args notation.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list