UserDict deprecated

Uwe Mayer merkosh at
Sun Jan 2 17:57:16 EST 2005

Saturday 01 January 2005 23:34 pm Steven Bethard wrote:

> If you implemented the file interface functions yourself, why do you
> want to inherit from file?


> But just inheriting from list won't make this work, will it?  Don't you
> want to do something like:


Right. I guess the thing I was looking for is an interface specification as
in Java's Interfaces. 
I could write an abstract base class, where all methods just raise

I don't know wether this is a good idea after all...:/


More information about the Python-list mailing list