In a module, should I use one, two, or no underscores to denote a helper function the user should not call?
PEP-8, the Python Style Guide, suggests a single leading underscore.
The following special forms using leading or trailing underscores are recognized (these can generally be combined with any case convention):
_single_leading_underscore: weak "internal use" indicator. E.g.from M import *does not import objects whose name starts with an underscore.- ...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With