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

2011-03-25 Thread Nick Coghlan
On Fri, Mar 25, 2011 at 7:22 PM, Simon Cross hodgestar+python...@gmail.com wrote: On Fri, Mar 25, 2011 at 1:25 AM, Nick Coghlan ncogh...@gmail.com wrote: As an example of the last point, perhaps rather than modifying all the *clients* of the socket module, it may make more sense to have tools

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

2011-03-25 Thread Nick Coghlan
On Fri, Mar 25, 2011 at 12:22 PM, Glenn Linderman v+pyt...@g.nevcal.com wrote: On 3/24/2011 4:25 PM, Nick Coghlan wrote: As an example of the last point, perhaps rather than modifying all the *clients* of the socket module, it may make more sense to have tools in the socket module itself to

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

2011-03-25 Thread Antoine Pitrou
On Fri, 25 Mar 2011 21:10:08 +1000 Nick Coghlan ncogh...@gmail.com wrote: On Fri, Mar 25, 2011 at 12:22 PM, Glenn Linderman v+pyt...@g.nevcal.com wrote: On 3/24/2011 4:25 PM, Nick Coghlan wrote: As an example of the last point, perhaps rather than modifying all the *clients* of the

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

2011-03-25 Thread Nick Coghlan
On Fri, Mar 25, 2011 at 11:29 PM, Antoine Pitrou solip...@pitrou.net wrote: My model for the suggestion is the context objects in the decimal module. They offer a constrained way to affect the way the entire decimal module goes about its business, and through judicious use of thread local