December 2000
Intermediate to advanced
816 pages
16h 57m
English
Python has several classes which extend the existing functionality of the core language which we have described in this chapter. The User* modules are like pre-cooked meals, ready to eat. We mentioned how classes have special methods which, if implemented, can customize classes so that when wrapped around a standard type, they can give instances type-like qualities.
UserList and UserDict, along with the new UserString (introduced in Python 1.6), represent modules that define classes that act as wrappers around list, dictionary, and string objects, respectively. The primary objective of these modules is to provide the desired functionality for you so that you do not have to implement them yourself, and ...
Read now
Unlock full access