Non-intuitive treatment of empty list as default parameter value on class method
Michael Hudson
mwh at python.net
Mon Mar 24 06:28:24 EST 2003
"Hans Peter de Koning" <hpdk at chello.nl> writes:
> Is the behaviour as illustrated in the first excerpt as intended? Can
> somebody enlighten me?
Yes:
http://www.python.org/cgi-bin/faqw.py?req=show&file=faq06.025.htp
Cheers,
M.
--
FORD: Just pust the fish in your ear, come on, it's only a
little one.
ARTHUR: Uuuuuuuuggh!
-- The Hitch-Hikers Guide to the Galaxy, Episode 1
More information about the Python-list
mailing list