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