I believe in Python there are no private public concept. All are public by 
default

Sent from Outlook Mobile<https://aka.ms/blhgte>



On Fri, Feb 26, 2016 at 12:04 AM -0800, "kay Cee" 
<une...@gmail.com<mailto:une...@gmail.com>> wrote:

Say I have a basic Circle class, for example:

class Circle:
    def __init__(self, radius):
        self.__radius = radius

Does adding the double underscore make this member directly inaccessible to 
children of the Circle class?

Also, I'd like to know if there are any side effects to programming classes 
this way?


Sent from my iPhone
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to