Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wish python 3 would make default parameters immutable. It seems to go against the "simple", "explicit" python philosophy, not to mention that (it seems) most people tend to learn about the feature through debugging.

description: http://effbot.org/zone/default-values.htm



Yeah sometimes I wish there were a warning whenever someone defines a function with [] as def arg.


I know pylint and pychecker do this, but not pep8. Opinions on those?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: