Module of built-in wrappers

Thomas Wouters thomas at xs4all.nl
Sat Jun 24 12:25:12 EDT 2000


On Thu, 22 Jun 2000 02:20:22 -0800, Matthew Cline <matt at nightrealms.com> wrote:
>The Python FAQ gives an example of how to make a class wrapper around
>a builtin type, like a dictionary.  Is there any module that has
>class wrapers for every builtin type for which this can be done?

It can be done for all builtin types, but it's only logical for specific
types ;) (Subclassing a number isn't too functional, yet)

And yes, standard class wrappers are included with your Python. See the
standard UserList and UserDict modules, and the UserString module if you're
using something newer than Python 1.5.2 (like one of the 1.6 alphas.)

Thomas.



More information about the Python-list mailing list