On Sat, Jul 31, 2010 at 3:31 AM, Nick Coghlan email@example.com wrote: ...
To be honest, there are actually some more features I would want to push for in ABCs (specifically, a public API to view an ABC's type registry, as well as a callback API to be notified of registration changes) before seriously proposing an official generic function implementation in the standard library.
funny hazard, I was proposing to PEP 3319 authors about having the _abc_registry attribute somehow exposed.
do you have an idea on how this could be done without forcing ABC subclasses to have a new public method ?
Maybe a separate function ? like
from abc import get_registry get_registry(MyAbc)