But I do like simple names for objects and functions. I acquired this habit from Stroustrup's book on the C++ language, 10 years ago, before I even knew about Python.
However, I must remember not to make the names too familiar. For example, yesterday I rashly named a script
new.py
. And this single line caused problems that had me scratching my head:Apparently matplotlib also uses the name
new
for a module (although I haven't actually located it):[UPDATE:
new.py
is not a matplotlib module, it's in the standard library, but it's deprecated. It provides a way to instantiate a new object without calling __init__
. I'm not sure what situation you would want to use it for other than what it says in the docs.There is one use of
new
in axes.py
but I don't understand it: