what does 'a=b=c=[]' do

Chris Angelico rosuav at gmail.com
Fri Dec 23 04:59:16 EST 2011


On Fri, Dec 23, 2011 at 7:49 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
> That is the most ridiculous thing I have heard in a while.  Mutable default
> arguments are *not* a bug in Python.
>
> Reminds me of a bug report a couple years back claiming multiple inheritence
> was a bug and asking it to be removed.

Both of these could arguably be called misfeaures, but not bugs.

ChrisA



More information about the Python-list mailing list