Bug in python!? persistent value of an optional parameter in function!

Paul Rubin http
Thu Mar 8 03:46:40 CET 2007

"C Barr Leigh" <cpblPublic at gmail.com> writes:
> Help! Have I found a serious bug?
> This seems like highly undesired behaviour to me. From the program
> below, I get output:

It is intentional, not a bug, see the docs.  Whether it's desirable is
a different question.

More information about the Python-list mailing list