On 17/07/14 23:00, Jose Amoreira wrote:
Aha, the object that stores the default value for the optional argument is created at the time of the execution of the function definition and mutable objects do mutate, so that's that. It makes a lot of sense.
Yes, think of it as a feature, not a bug :-) -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor