Bizarre method keyword-arg bug.

Fredrik Lundh fredrik at
Mon Aug 18 11:40:45 CEST 2008

Jasper wrote:

> Uggg!  /That's/ an intuitive side-effect/wart.  :-/

it's done that way on purpose, of course, because evaluating a full 
closure for each default argument at every call would greatly hurt 
performance (and lead to another set of surprises, of course).

please don't label things that you don't understand and haven't spent 
any time reflecting over as bugs or warts; that's disrespectful to the 
designers and probably not good for your blood pressure.


More information about the Python-list mailing list