Single leading dash in member variable names?

e.doxtator at gmail.com e.doxtator at gmail.com
Tue Sep 11 14:45:25 EDT 2012


All

Python noob here.  Trying to understand a particular syntax:

class stuff:
    def __init__(self):
         self._bongo = "BongoWorld"

-----------

What is the significance of the leading underscore in "self._bongo"?  I've seen this a few times and, after looking through PEP 8, I didn't see anything relevant, but I could have missed it.




More information about the Python-list mailing list