adding a method to an existing builtin class
Chris Rebert
clp2 at rebertia.com
Sun Sep 26 12:15:29 EDT 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.
Cheers,
Chris
--
http://blog.rebertia.com
More information about the Python-list
mailing list