"Michael Chermside" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > However, this is more of a practice than a prohibition... it IS > possible to modify existing classes in Python.
If the class is defined/written in Python. > Unfortunately, for implementation reasons you can't modify most > built-in (and some user-defined) classes in this fashion: Being able to add Python-coded functions as methods of compiled C-coded types/classes (builting or otherwise) would require some wrapping machinery that would slow down normal usage. tjr _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
