Author ncoghlan
Recipients aronacher, ncoghlan, paul.moore
Date 2009-03-02.21:01:17
SpamBayes Score 0.0025343
Marked as misclassified No
Message-id <1236027680.0.0.114135650113.issue5405@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-03-02 21:01:20ncoghlansetrecipients: + ncoghlan, paul.moore, aronacher
2009-03-02 21:01:20ncoghlansetmessageid: <1236027680.0.0.114135650113.issue5405@psf.upfronthosting.co.za>
2009-03-02 21:01:18ncoghlanlinkissue5405 messages
2009-03-02 21:01:17ncoghlancreate