Py2K wishes
Skip Montanaro
skip at mojam.com
Tue Dec 28 09:02:59 EST 1999
>> >class Proxy:
>> > def __init__ ( self, fallback ):
>> > __fallback__=fallback
>>
>> >a = Proxy( someObject )
>>
>> >This would imply the following:
>>
>> >class SomeClass( someParentClass ): pass
>> >assert SomeClass.__fallback__ == someParentClass
>> >assert SomeClass().__fallback__ == SomeClass.__fallback__
>>
>> I don't have a clue what this is doing. Sorry.
Paul> It's doing what Python has always done with instances and their
Paul> classes and base classes. Only now it is doing it based on a more
Paul> explicit, generalized, reusable mechanism.
Please explain for those of us with small brains.
Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/
847-971-7098 | Python: Programming the way Guido indented...
More information about the Python-list
mailing list