Re: UserDict deprecated

2005-01-03 Thread Steve Holden
Wolfgang wrote: Hello, Alex Martelli wrote: The DictMixin class from the UserDict module is *not* deprecated -- only the UserDict class from the same module. (If you found info saying otherwise pls provide a URL: the info is wrong and I'll try to get it fixed -- thanks!). DictMixin's purpose is e

Re: UserDict deprecated

2005-01-03 Thread Wolfgang
Hello, Alex Martelli wrote: The DictMixin class from the UserDict module is *not* deprecated -- only the UserDict class from the same module. (If you found info saying otherwise pls provide a URL: the info is wrong and I'll try to get it fixed -- thanks!). DictMixin's purpose is exactly as you st

Re: UserDict deprecated

2005-01-02 Thread Uwe Mayer
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 th

Re: UserDict deprecated

2005-01-01 Thread Alex Martelli
Uwe Mayer <[EMAIL PROTECTED]> wrote: ... > If I used UserDict I would not need to specify all methods UserDict provides > alreay, anyway. The DictMixin class from the UserDict module is *not* deprecated -- only the UserDict class from the same module. (If you found info saying otherwise pls pr

Re: UserDict deprecated

2005-01-01 Thread Steven Bethard
Uwe Mayer wrote: Saturday 01 January 2005 22:48 pm Hans Nowak wrote: I am curious, what would you do with a class that derives from both file and dict? I was writing a class that read /writes some binary file format. I implemented the functions from the file interface such that they are refering to

Re: UserDict deprecated

2005-01-01 Thread Hans Nowak
Uwe Mayer wrote: Why is the UserDict module is deprecated after Python 2.2. The application of it I have in mind is, i.e. multiple inheritance from "file" and "dic" - which is not possible. [...] I was writing a class that read /writes some binary file format. I implemented the functions from the f

Re: UserDict deprecated

2005-01-01 Thread Uwe Mayer
Saturday 01 January 2005 22:48 pm Hans Nowak wrote: > Uwe Mayer wrote: > >> Why is the UserDict module is deprecated after Python 2.2. The >> application of it I have in mind is, i.e. multiple inheritance from >> "file" and "dic" - which is not possible. > I am curious, what would you do with a

Re: UserDict deprecated

2005-01-01 Thread Hans Nowak
Uwe Mayer wrote: Why is the UserDict module is deprecated after Python 2.2. The application of it I have in mind is, i.e. multiple inheritance from "file" and "dic" - which is not possible. I am curious, what would you do with a class that derives from both file and dict? -- Hans Nowak http://ze