[Python-Dev] Proposal for Python 3.3: dependence injection

James Y Knight foom at fuhm.net
Thu Mar 24 17:52:50 CET 2011


On Mar 24, 2011, at 12:40 PM, Jesus Cea wrote:
> I want to test the dev community interest in modifying the stdlib to
> ease dependence injection.
> 
> The seminal idea was in
> <http://mail.python.org/pipermail/python-dev/2010-April/099237.html>.
> 
> A lot of stdlib modules use, deep inside, other modules to do their
> work. The most obvious case would be the socket library, used by ANY
> module involving the network.

Do you know about exocet (described by the last few blog entries on http://washort.twistedmatrix.com/search/label/exocet), a newly developed tool for doing dependency injection on arbitrary modules? It seems like it would be very well suited for the kinds of things you want to do.

James


More information about the Python-Dev mailing list