A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-September/056099.html below:

[Python-Dev] Replacement for print in Python 3.0

[Python-Dev] Replacement for print in Python 3.0Martin Blais martin.blais at gmail.com
Sat Sep 3 15:55:07 CEST 2005
On 9/3/05, Paolino <paolo_veronelli at tiscali.it> 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)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4