Message 160815 - Python tracker (original) (raw)
Given that asyncore's design allows for a socket map to be passed in (at least in part - RDM's comment), ISTM that it should support this consistently, and also that smtpd should support this mode of use.
Well, I would argue that asyncore's design is thoroughly broken, and passing a socket map is a poor kludge to avoid global state; in a sophisticated event loop, the socket map wouldn't be the only piece of state to pass around. (look at twisted's reactors for a comparison)