On 9/3/05, Paolino <[EMAIL PROTECTED]> wrote:
> Martin Blais wrote:
> > Then how about::
> >
> >   output(*(x*x for x in range(10)), iter=1)
> >
> Illegal in python2.4.(Wrongly ?) And makes the star solution half unuseful.
> 
>  >>> def f(*args,**kwargs):
> ...   pass
> ...
>  >>> f(*(1,2,3),iter=True)
>    File "<stdin>", line 1
>      f(*(1,2,3),iter=True)
> 
> Leaving out what I just asserted in the previous thread :( I suppose you
> meant output((x*x for x in range(10)), iter=1)
> 
> f(1,[2,3],(_ for _ in (4,5)),iter=True)

Yes, that's right, my bad, I indeed meant your corrected version above
(forgot to remove the star)
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to