Tim Peters wrote: > I expect the easiest way out is for you to decide that type objects are > immutable after all -- even if there are obscure ways to mutate them! It's not at all obscure: >>> class A(object):pass ... >>> type(A).__name__ 'type' >>> A.foo = 1 >>> A.foo 1 Look, Ma, I'm mutating a type! No, son, you are just modifying it. The properties you quote (comparison checks for identity, usable as a dictionary key) don't imply at all that an object is immutable. Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4