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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -