Good evening, i need an advice, googling i couldn't find a proper direction. I need to make a method available only within the class (i.e other methods or functions), if called from the program as a method of the object referring to the class i want:
Attaching a screenshot to make it more clear. Any advice is appreciated, Thank you.
There's no private methods in python. Common usage dictates to precede a method that's only supposed to be used internally with one or two underscores, depending on the case. See here: What is the meaning of single and double underscore before an object name?
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments