[Python-ideas] proto-PEP: Fixing Non-constant Default Arguments (original) (raw)
Chris Rebert cvrebert at gmail.com
Tue Jan 30 06:27:53 CET 2007
- Previous message: [Python-ideas] proto-PEP: Fixing Non-constant Default Arguments
- Next message: [Python-ideas] proto-PEP: Fixing Non-constant Default Arguments
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-ideas] proto-PEP: Fixing Non-constant Default Arguments
- Next message: [Python-ideas] proto-PEP: Fixing Non-constant Default Arguments
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]