Did class inheritance from "dict" work in early Python?
Steven D'Aprano
steve-REMOVE-THIS at cybersource.com.au
Wed Jul 21 23:34:01 EDT 2010
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
More information about the Python-list
mailing list