Attributes and built-in types
"Martin v. Löwis"
martin at v.loewis.de
Sat Apr 2 02:48:21 EST 2005
Dave Opstad wrote:
> Is it just an implementation limitation that attributes cannot be
> assigned to instances of internal types?
No, not "just". Some types have a fixed set of attributes by design,
whereas others allow addition of attributes. There are several reasons
for this design. Performance is one of them; backwards compatibility
another.
Regards,
Martin
More information about the Python-list
mailing list