Standing Objects ... possible?

Philip Swartzleonard starx at pacbell.net
Sat Feb 2 15:25:52 EST 2002


    	I have this vague idea that this would be useful in the near 
future, and I was wondering if it was at all possible without recoding 
the interperter. What i want is a construct like:

object Foo( ancestor ):
    	pass

    	or more likely:

class Foo( ancestor, standing_mixin ):
    	pass

    	to be more or less equivelent to:

class _Foo( ancestor ):
    	pass
Foo = _Foo()

    	The second option looked easy at one point, but I don't think that 
I can make it self-initiate... In any case, is there a prefered way of 
writing hidden stuff like the _Foo for doing it the more possible way?

Thanks for any idea...

-- 
Philip Sw "Starweaver" [rasx] :: www.rubydragon.com



More information about the Python-list mailing list