13 Oct
2019
13 Oct
'19
5:50 p.m.
I like the way you're thinking. In any case, I think there should be some standard pattern for this implemented in the standard library. Perhaps, in addition to the using registration, implement a `__push__` method convention, and then the generic function for pushing an item to a collection would look for `__push__`, `push`, `append`, or `add` and try the first of those that it finds on an object of a type that is not registered.