Message83037
While a complete solution isn't possible, at least supporting querying
of explicit registrations would be an improvement over the status quo
(since an implicit registration can always be turned into an explicit
one, but a registration can't always be turned into inheritance).
For this to work in practice, I believe a PEP would be needed to add a
"subscribe" method to ABCMeta instances - this method would accept two
callbacks, one that was called whenever register() was invoked, and a
second when unregister() was invoked. Generic functions which add ABCs
registered could then subscribe to them and update their type caches
appropriately. |
|
Date |
User |
Action |
Args |
2009-03-02 21:01:20 | ncoghlan | set | recipients:
+ ncoghlan, paul.moore, aronacher |
2009-03-02 21:01:20 | ncoghlan | set | messageid: <1236027680.0.0.114135650113.issue5405@psf.upfronthosting.co.za> |
2009-03-02 21:01:18 | ncoghlan | link | issue5405 messages |
2009-03-02 21:01:17 | ncoghlan | create | |
|