Newbie Q: Class Privacy (or lack of)
Ray
ray_usenet at yahoo.com
Fri Jul 28 09:22:09 EDT 2006
Bruno Desthuilliers wrote:
> Ray wrote:
> > Bruno Desthuilliers wrote:
> > Actually Bruno, don't you think that the notion of flexibility in
> > Python comes at the expense of "security" is simply due to the fact
> > that the syntax of "screw up" is exactly the same as the syntax of "I
> > mean it this way and I do want it"?
>
> (patient) Doctor, it hurts when I do this...
> (doctor) Then don't do it.
>
> !-)
Yeah, I know... but the thing is that it's easy to "do it". Say in C++,
you can rebind the method of a class to another function if you want
to, you can muck around with the vtable and stuff, but you've gotta do
something different than, say, a normal assignment.
>
> --
> bruno desthuilliers
> python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
> p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list