Please explain this strange Python behaviour

Tim Chase python.list at
Thu Apr 30 14:27:58 CEST 2009

Duncan Booth wrote:
> Tim Chase <python.list at> wrote:
>> There _are_ cases where it's a useful behavior, but they're rare, 
>> so I don't advocate getting rid of it.  But it is enough of a 
>> beginner gotcha that it really should be in the Python FAQ at 
> That's an excellent idea!
> So excellent in fact that it already is:

Dang...I thought I did a search on that page for "default" and 
must have totally missed it (either for searching on the wrong 
page, misspelling "default", or having my eyes distracted by the 
neighboring FAQ about "goto" which I certainly remember seeing in 
my hunt).  Guess that's what I get for responding before breakfast.



More information about the Python-list mailing list