Re: [Tutor] Protected in Python

2007-04-15 Thread Alan Gauld
"Nader Alrawahi" <[EMAIL PROTECTED]> wrote > in Python. We know that methods can be private or public , but is > there a > way we can make them protected in Python, something similar to Java? No, Python does not support protected. However a common conventionis to use a single underscore before

[Tutor] Protected in Python

2007-04-15 Thread Nader Alrawahi
Hello everyone, I have been working on an object-oriented project using Python and I was browsing through the manual looking for some information about data-hiding in Python. We know that methods can be private or public , but is there a way we can make them protected in Python, something similar