How do these Java concepts translate to Python?

bruno modulix onurb at xiludom.gro
Fri Aug 12 18:20:17 CEST 2005

Ray wrote:
> Roy Smith wrote:
>>Quick answer; there are none, all attributes are public.
> Well yeah... if you really want it, in Java you can do that too via
> reflection. Just that I'm not used to it yet so I feel a bit jittery
> with so much power on my hands!

Then wait until you discover what one can do with __magic_methods__,
functions-as-objects, closures, callable objects, descriptors
(properties on steroids), decorators, generators, and metaclasses...
*Then* you'll know what power means !-)

And more is to come...

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