python - Should I start a helper function with underscore(s)? -
this question has answer here:
in module, should use one, two, or no underscores denote helper function user should not call?
pep-8, python style guide, suggests single leading underscore.
the following special forms using leading or trailing underscores recognized (these can combined case convention):
_single_leading_underscore
: weak "internal use" indicator. e.g.from m import *
not import objects name starts underscore.- ...
Comments
Post a Comment