Hacker News new | past | comments | ask | show | jobs | submit login

I dunno, the Python convention is "if you don't mutate, return a value; if you do mutate, return None." Since you wrote function('baz', MODULE_LEVEL_CONSTANT) without an assignment in front of it, I would assume that function must mutate something. Since strings are immutable, that just leaves either the display (print) or the second argument. I guess the real point is don't mutate your arguments and print them. Do one or the other, but not both.



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

Search: