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

Paul Rubin http
Wed Mar 7 21:46:40 EST 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