Should Python raise a warning for mutable default arguments?
bearophileHUGS at lycos.com
bearophileHUGS at lycos.com
Fri Aug 22 11:43:32 EDT 2008
DrScheme is an implementation of Scheme that is very newbie-friendly.
It has several limited sub-languages, etc.
So maybe a command line option can be added to Python3 ( -
newbie ? :-) ) that just switches on similar warnings, to help newbies
(in schools, where there's a teacher that encourages to always use
that command line option) avoid some of the most common traps.
Bye,
bearophile
More information about the Python-list
mailing list