[issue11959] smtpd cannot be used without affecting global state
Vinay Sajip
report at bugs.python.org
Tue May 15 15:39:21 CEST 2012
Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
> If asyncore and asynchat are (mostly?) supporting an alternate
> socket map, why is it necessary to copy create_socket?
> Shouldn't we be fixing create_socket in asyncore instead?
Well, I don't see how this can be done along with keeping existing behaviour, since if you currently pass a map to the dispatcher constructor, it's not passed to set_socket; fixing it in asyncore would mean changing this fact, and so in theory could break existing code.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11959>
_______________________________________
More information about the Python-bugs-list
mailing list