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

Cleverness like this makes you feel warm and fuzzy inside right up to the point where someone decides to actually pass that second argument to your function.


Well in Python 3 you can warn them:

    def fib(n, m:"donotusethisparameter"={}):




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

Search: