[Python-ideas] file(fn).read()

R. David Murray rdmurray at bitdance.com
Mon Jun 15 04:20:15 CEST 2009


spir <denis.spir at free.fr> wrote:
> I take the opportunity to ask whether there is a chance in the future to be
> able to customize builtin types. (In this case many proposals on this list
> will simply vanish.)

Assuming I understand your question correctly, then according to a
recent posting on python-dev[1], builtin types not being modifiable is
a policy decision.  According to Guido, it is so that 3rd party modules
cannot make incompatible changes to built-in types.

So the answer to your question is most likely "no".

--David

[1] http://mail.python.org/pipermail/python-dev/2009-June/090044.html




More information about the Python-ideas mailing list