promoting [] by superclass?

Erik Max Francis max at alcyone.com
Tue Jun 8 22:08:26 CEST 2004


Jim Newton wrote:

> wow that is great.
> 
> now the other question:
> 
> class Pair(list):
>    ...
> 
> how can i "cast",  "promote" [] to class Pair?

You can't.

-- 
 __ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/  \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ Sometimes there's no point in giving up.
    -- Louis Wu



More information about the Python-list mailing list