keakon <kea...@gmail.com> wrote: > The default value is mutable, and can be reused by all each call. > So each call it will append 1 to the default value, that's very > different than C++.
Being different from C++ is one of the many reasons some of us choose Python ;) This tends to bite most newcomers, so it's mentioned in the FAQ: http://www.python.org/doc/faq/general/#id52 -- http://mail.python.org/mailman/listinfo/python-list