what does 'a=b=c=[]' do
alex23
wuwei23 at gmail.com
Thu Dec 22 22:40:11 EST 2011
On Dec 23, 12:59 pm, Ian Kelly <ian.g.ke... at gmail.com> wrote:
> It's only irrelevant in the immediate context of the code you posted.
> But when Joe Novice sees your code and likes it and duplicates it a
> million times
I'm sorry, but I'm not going to modify my coding style for the sake of
bad programmers.
The context is _important_. Why should I guard against default
argument mutability when its not going to occur in the function body?
More information about the Python-list
mailing list