How does Mr. Martelli's Borg recipe work ?

Erik Max Francis max at alcyone.com
Wed Jul 23 04:39:48 EDT 2003


Robin Becker wrote:

> ....can't one do
> class TheSomething:
>    ....
> 
> TheSomething = TheSomething()
> 
> then it's harder to get at the class which presumably is now only
> available as TheSomething.__class__

Well, you can name the class Hugahglaugahglaugalgha, or delete the
original class name explicitly, or any such thing.  The point is that in
Python, if you're accessing a name starting with underscores in
something you don't own, you probably shouldn't be.  "We're all adults
here."

-- 
   Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ Why place value or judgement on color?
\__/  Andrew Coler




More information about the Python-list mailing list