[Python-ideas] proto-PEP: Fixing Non-constant Default Arguments
Chris Rebert
cvrebert at gmail.com
Tue Jan 30 06:27:53 CET 2007
Adam Olsen wrote:
> [snip]
> Another, more bizarre approach would be to require default arguments
> be hashable. This would prevent lists from being used, protecting
> people from mistakes.
If my PEP ends up being rejected, I would fully support this. It
wouldn't solve the more general problem, but at least it would prevent a
common newbie mistake.
- Chris Rebert
More information about the Python-ideas
mailing list