[Email-SIG] API thoughts

Barry Warsaw barry at python.org
Fri Mar 4 03:55:59 CET 2011


On Mar 02, 2011, at 08:23 PM, R. David Murray wrote:

>Pretty much.  I think they will also contain some callable methods,
>to provide hooks where a policy subclass can implement a custom policy.
>My current implementation has such a hook for registering defects, which
>would allow a custom policy to, for example, log the defects in addition
>to or instead of putting them into the defects list.

Makes sense.

>I'm not sure what we you mean by multiple registrations.  Can you give
>an example?

I really meant multiple registries, mostly thinking about how to avoid some
global state.  But Python already has some global registries, so maybe that's
not too bad in this case.

-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/email-sig/attachments/20110303/486d34a2/attachment.pgp>


More information about the Email-SIG mailing list