Coding conventions for class names

Michael Hoffman at mh391.invalid
Thu Apr 26 06:50:44 EDT 2007

Kay Schluehr wrote:

> What happens when an enthusiast re-implements a stdlib module e.g.
> decimal s.t. it becomes a builtin module? Will the stdlib module serve
> as a wrapper to conform the current API or will the builtin module
> conform to the current interface.

Well, the best example is probably the transition from sets.Set to 
__builtin__.set. The API changed but only slightly. So far sets.Set 
retains the old implementation--it is not a wrapper for __builtin__.set.

Future modules may be implemented differently.
Michael Hoffman

More information about the Python-list mailing list