promoting  by superclass?
jimka at rdrop.com
Tue Jun 8 19:38:28 CEST 2004
this is interesting. I though that if you passed
an argument to your class factory function, it would call
the __init__ with that argument.
what does x1() do and what does x2() do?
Robert Brewer wrote:
> Jim Newton wrote:
>>how can i "cast", "promote"  to class Pair?
>>>>class Pair(list): pass
>>>>p = Pair()
> <class '__main__.Pair'>
> Or was there some other behavior you had in mind?
> Robert Brewer
> Amor Ministries
> fumanchu at amor.org
More information about the Python-list