Mike Meyer wrote:

Jeff Shannon <[EMAIL PROTECTED]> writes:



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.



Ah. I suppose that makes sense, now that the builtins are subclassable. Originally, they had to be implemented in Python in order to make them subclassable, but now the type/class unification has changed all that...


Jeff Shannon
Technician/Programmer
Credit International

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to