Why no list heritable type?
Mike Meyer
mwm at mired.org
Fri Dec 17 14:24:43 EST 2004
Jeff Shannon <jeff at ccvcorp.com> writes:
> Sion Arrowsmith wrote:
> Additionally, as I understand it UserList and UserDict are implemented
> entirely in Python, which means that there can be significant
> performance differences as well.
Actually, UserList and UserDict are just wrappers around the builtin
types. So the performance hit is one Python function call - pretty
much neglible. But new code should still subclass the builtins.
<mike
--
Mike Meyer <mwm at mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
More information about the Python-list
mailing list