(Jun-18-2018, 10:51 AM)DeaD_EyE Wrote: I use_
everyday in the REPL and in programs as throw away variable.
However, I don't see that newbies are using the underscore as throw away variable. They don't know it.
At one of my former employer's git was configured to reject commits that did not pass
pylint
. Of course, some smart asses (yours truly among them ) knew how to bypass linter, but in such a trivial case it was too much of a trouble.
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.