"James Mills" <prolo...@shortcircuit.net.au> writes:
> Bare in mind also, that enfocing access control / policing as you
> called it has a performance hit as the machine (the Python vm)
> has to perform checks each time members of an object are accessed.

It's the other way around.  If the compiler knows that you aren't
creating new attributes on the fly, it can put them into fixed slots
like a C struct, and method calls become ordinary function calls
through a dispatch vector.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to