Prev: Hey RACIST and INcompetent FBI/CIA Bustards where is the ANTHRAX MAILER ??? Where are the 4 blackboxes, where are the 5 dancing israelis and what is the status of FORENSIC evidence and trace of NANO THERMITE in WTC dust ?
Next: Solution Manual & Test Bank
From: John Nagle on 21 Jul 2010 22:45 Did class inheritance from "dict" work in early Python? Or did that only start working when "new objects" came in? John Nagle
From: Stephen Hansen on 21 Jul 2010 23:11 On 7/21/10 7:45 PM, John Nagle wrote: > Did class inheritance from "dict" work in early Python? Or did > that only start working when "new objects" came in? The latter, that's why UserDict (and UserList) was added. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/
From: Steven D'Aprano on 21 Jul 2010 23:34
On Wed, 21 Jul 2010 19:45:24 -0700, John Nagle wrote: > Did class inheritance from "dict" work in early Python? Or did that > only start working when "new objects" came in? Only with the introduction of new-style classes and "object" in version 2.2. http://www.python.org/download/releases/2.2.3/descrintro/#subclassing Before that the technique of choice was to use automatic delegation, e.g. see the UserDict module. -- Steven |