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

CTO debatem1 at gmail.com
Tue May 19 00:00:58 CEST 2009


On May 18, 5:17 pm, Chris Rebert <pyid... at rebertia.com> wrote:
> On Mon, May 18, 2009 at 1:53 PM, Pascal Chambon<chambon.pas... 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. Seehttp://www.python.org/dev/peps/pep-3099/:
>
> "There will be no alternative binding operators such as :=."
>
> Cheers,
> Chris

To be fair, the last discussion on thunks turned into a discussion of
metalanguages and macros,
which were also pretty thoroughly canned on that list.

Geremy Condra


More information about the Python-ideas mailing list