adding a method to an existing builtin class

Chris Rebert clp2 at
Sun Sep 26 18:15:29 CEST 2010

On Sun, Sep 26, 2010 at 9:07 AM, TP <Tribulations at paralleles.invalid> wrote:
> Hi everybody,
> Today I have learned a bit of the news of Python 3.0 compared to 2.4
> version.
> By the way, I have asked myself if it is possible to add a method to a
> builtin type

The built-in types' classes are immutable; you can only add/override
their methods via subclassing, like you showed.


More information about the Python-list mailing list