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

The Pythonic solution is named parameters:

  def __init__(self, min=x, max=y):


Any parameter/argument is named in Python. What you're providing are default values for arguments.


Of course you are correct. This is why I shouldn't post shortly after waking up.




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

Search: