|
|
|
|
|
by quietbritishjim
321 days ago
|
|
I think you mean overridden (i.e. defined in both base class and derived class) rather than overloaded (i.e. defined more than once in a single place but with different argument types, as least from a typing point of view [1]). Your comment seriously confused me till I figured that out. [1] https://typing.python.org/en/latest/spec/overload.html Even then, to be honest I'm a bit sceptical. Can you point at a link in the official documentation that says overriding methods of dictionaries may not work? I would have thought the link to UserDict would have mentioned that if true. What do you mean they are "runtime dependent"? |
|
UserDict isn't just some historical artifact of a bygone era like some of the posters below are miscorrecing me on.