May-01-2017, 10:47 PM
(May-01-2017, 10:39 PM)Mekire Wrote: Yes, that has been established. This discussion was as to whether or not you should explicitly includereturn None
or evenreturn
in said function. And of course, as established by convention (whether it be in pep8 or not) you should not.
I think that OP is not convinced. The problem is with the interpretation of explicit - I think it's pretty obvious that explicit is better than implicit only when explicit is useful or not misleading.
Useless
return
with method call is out of place. But I feel it's like talking to a .
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.