[Python-ideas] Json object-level serializer (original) (raw)

Tarek Ziadé ziade.tarek at gmail.com
Sat Jul 31 13:50:16 CEST 2010


On Sat, Jul 31, 2010 at 3:31 AM, Nick Coghlan <ncoghlan at gmail.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 getregistry getregistry(MyAbc)

-- Tarek Ziadé | http://ziade.org



More information about the Python-ideas mailing list