[Python-ideas] Default arguments in Python - the return - running out of ideas but...

Chris Rebert pyideas at rebertia.com
Mon May 18 23:17:55 CEST 2009


On Mon, May 18, 2009 at 1:53 PM, Pascal Chambon
<chambon.pascal at wanadoo.fr> wrote:
<snip>
> Else, concerning the syntax for "dynamic" default arguments, I guesse
> somethng like :
>
> def func(a, b @= []):
>        pass
>
> would be OK, wouldn't it ?

The BDFL has condemned introducing new assignment operators. See
http://www.python.org/dev/peps/pep-3099/ :

"There will be no alternative binding operators such as :=."

Cheers,
Chris
-- 
http://blog.rebertia.com



More information about the Python-ideas mailing list