Steve Holden wrote:
> could ildg wrote:
> > Python is wonderful except that it has no real private and protected
> > properties and methods.
> > Every py object has dict so that you can easily find what fields and
> > methods an obj has,
> > this is very convenient, but because of this, py is very hard to support
> > real private and
> > protected?
> > If private and protected is supported, python will be perfect.
> >
> You only say that because you assume private and protected give you a
> security that they actually don't. They certainly make it more difficult
> to *spot* the security errors.

Honestly I like to use private/protect/public modifiers in C++ for the
sake of code documentation. I like to know which attributes are
dedicated to be known by other objects, which ones are for internal use
only and which ones should be at least publicly accessible within a
class hierarchy. This helps structuring code in the large and spotting
attention. Code becomes easier accessible. But if we have Sunday or I
get asked by serious programmers I also know the right technical
answers about protection rights, security etc.

Kay

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to