On Tue, Nov 8, 2011 at 5:44 AM, Glyph Lefkowitz wrote:
>
>> On Nov 7, 2011, at 10:25 AM, exar...@twistedmatrix.com wrote:
>>
>>> reactor = getUtility(IReactor)?
>
>> That's not really a solution. It's the barest glimpse of a large system
>> which might be applied as a solution. Do you want to ex
On Nov 7, 2011, at 10:25 AM, exar...@twistedmatrix.com wrote:
>> reactor = getUtility(IReactor)?
>
> That's not really a solution. It's the barest glimpse of a large system
> which might be applied as a solution. Do you want to expand it?
I'd like to echo this request for exposition. My und
On 06:06 pm, j...@mumak.net wrote:
On Tue, Nov 1, 2011 at 6:48 PM, Glyph wrote:
On Nov 1, 2011, at 12:14 PM, Phil Mayers wrote:
On 01/11/11 15:28, Christopher Armstrong wrote:
I whole-heartedly agree with the sentiment, though. We need to get
rid
of the global reactor.
Why?
Sometimes you
On Tue, Nov 1, 2011 at 6:48 PM, Glyph wrote:
> On Nov 1, 2011, at 12:14 PM, Phil Mayers wrote:
>
>> On 01/11/11 15:28, Christopher Armstrong wrote:
>>
>>> I whole-heartedly agree with the sentiment, though. We need to get rid
>>> of the global reactor.
>>
>> Why?
>
> Sometimes you want a different
On Nov 3, 2011, at 5:14 AM, Phil Mayers wrote:
> On 11/02/2011 10:56 PM, Glyph Lefkowitz wrote:
>>
>> On Nov 2, 2011, at 3:55 AM, Phil Mayers wrote:
>>
>>> But I'll note that most people I've seen crib from existing test code
>>> during the early phases of TDD, tutorials or not - and if most te
On 11/02/2011 10:56 PM, Glyph Lefkowitz wrote:
>
> On Nov 2, 2011, at 3:55 AM, Phil Mayers wrote:
>
>> But I'll note that most people I've seen crib from existing test code
>> during the early phases of TDD, tutorials or not - and if most test code
>> in Twisted uses the real reactor...
>
> Thanks
On Nov 2, 2011, at 3:55 AM, Phil Mayers wrote:
> But I'll note that most people I've seen crib from existing test code
> during the early phases of TDD, tutorials or not - and if most test code
> in Twisted uses the real reactor...
Thanks for volunteering to fix some of our existing tests, the
On 11/02/2011 07:55 AM, Phil Mayers wrote:
> Without commenting on everything else in the thread
s/thread/message/
Dammit...
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-pyt
On 11/01/2011 11:49 PM, Glyph wrote:
> of "real" reactors. New contributors sometimes say that they don't feel
> like the code is "really" being tested unless they're testing against
> the real implementation of something, and it may not be immediately
> obvious that testing against a not-real imp
On Nov 1, 2011, at 10:20 PM, Tim Allen wrote:
> On Tue, Nov 01, 2011 at 02:48:02PM -0400, Glyph wrote:
>> If you can think of a better solution that addresses all of these
>> concerns simultaneously somehow, please share, I'd love to hear it
>> :-).
>
> I'm not sure if it addresses all your conc
On Tue, Nov 01, 2011 at 02:48:02PM -0400, Glyph wrote:
> If you can think of a better solution that addresses all of these
> concerns simultaneously somehow, please share, I'd love to hear it
> :-).
I'm not sure if it addresses all your concerns, but
twisted.python.context will let you set a parti
On Nov 1, 2011, at 4:36 PM, Phil Mayers wrote:
> One example, we use a tiny script wrapping DeferredSemaphore and
> t.p.utils.getProcessOutput to parallelise SSH scanning, because
> ssh-keyscan is (ahem) poorly implemented.
>
> Maybe I knock up more of these short 20-liners than is common? And
On Nov 1, 2011, at 10:38 AM, exar...@twistedmatrix.com wrote:
> Hello,
>
> I'd like for us to decide that we will introduce no new unit tests into
> Twisted's test suite which use the global reactor.
+1.
Let's add this to the coding standard. It doesn't look to me like anyone's
objecting.
On 09:37 pm, ra...@twistedmatrix.com wrote:
>On Tue, Nov 1, 2011 at 5:29 PM, Anton Gyllenberg wrote:
>>On Tue, Nov 1, 2011 at 20:48, Glyph wrote:
>> > On Nov 1, 2011, at 12:14 PM, Phil Mayers wrote:
>> >> I find the "pass reactor as 1st argument to everything" API pattern
>> >> messy. I'm sure th
On Tue, Nov 1, 2011 at 5:29 PM, Anton Gyllenberg wrote:
> On Tue, Nov 1, 2011 at 20:48, Glyph wrote:
> > On Nov 1, 2011, at 12:14 PM, Phil Mayers wrote:
> >> I find the "pass reactor as 1st argument to everything" API pattern
> >> messy. I'm sure there's a good reason. What is it?
> >
> > This p
On Tue, Nov 1, 2011 at 20:48, Glyph wrote:
> On Nov 1, 2011, at 12:14 PM, Phil Mayers wrote:
>> I find the "pass reactor as 1st argument to everything" API pattern
>> messy. I'm sure there's a good reason. What is it?
>
> This pattern is a solution to the problem, but I agree that it is possibly
On 11/01/2011 06:48 PM, Glyph wrote:
> Nevertheless, "real reactor as default argument" is not a huge
> improvement either, because it typically breaks one level out. If
> you have 'a(reactor=defaultReactor)' and then 'b()' needs to call
> 'a', half the time 'b' will forget to supply a reactor ar
On 11/01/2011 07:51 PM, Jonathan Lange wrote:
> Sorry, I thought you were asking us to come up with good reasons for
> why you find it messy.
Drat; upon re-reading my question, that meaning does suggest itself,
doesn't it? Oh well, never mind. I blame email...
__
On Tue, Nov 1, 2011 at 12:45 PM, Phil Mayers wrote:
> On 01/11/11 16:18, Jonathan Lange wrote:
>> On Tue, Nov 1, 2011 at 12:14 PM, Phil Mayers wrote:
>>> On 01/11/11 15:28, Christopher Armstrong wrote:
>>>
I whole-heartedly agree with the sentiment, though. We need to get rid
of the glo
On Nov 1, 2011, at 12:14 PM, Phil Mayers wrote:
> On 01/11/11 15:28, Christopher Armstrong wrote:
>
>> I whole-heartedly agree with the sentiment, though. We need to get rid
>> of the global reactor.
>
> Why?
Sometimes you want a different reactor. The most common reason is unit
testing, alth
On 01/11/11 17:23, Corbin Simpson wrote:
> Singletons are an anti-pattern. Because the reactor is a singleton:
Note "some kind of".
I don't care how it's done, but I would have liked the common use case
(single reactor) to require no extra typing. But I think that ship has
sailed.
___
On Tue, Nov 1, 2011 at 10:06 AM, Phil Mayers wrote:
> On 01/11/11 16:58, Itamar Turner-Trauring wrote:
>>> I find the "pass reactor as 1st argument to everything" API pattern
>>> messy. I'm sure there's a good reason. What is it?
>>
>> 1. Supporting multiple reactors.
>
> Interesting. I had assume
On 01/11/11 16:58, Itamar Turner-Trauring wrote:
>> I find the "pass reactor as 1st argument to everything" API pattern
>> messy. I'm sure there's a good reason. What is it?
>
> 1. Supporting multiple reactors.
Interesting. I had assumed that was a "never on the cards" option. Would
it be possibl
> I find the "pass reactor as 1st argument to everything" API pattern
> messy. I'm sure there's a good reason. What is it?
1. Supporting multiple reactors.
2. Unit testing: if you have an explicit object, you can replace it more
easily with a fake.
__
On 01/11/11 16:18, Jonathan Lange wrote:
> On Tue, Nov 1, 2011 at 12:14 PM, Phil Mayers wrote:
>> On 01/11/11 15:28, Christopher Armstrong wrote:
>>
>>> I whole-heartedly agree with the sentiment, though. We need to get rid
>>> of the global reactor.
>>
>> Why?
>>
>> I find the "pass reactor as 1s
On Tue, Nov 1, 2011 at 12:14 PM, Phil Mayers wrote:
> On 01/11/11 15:28, Christopher Armstrong wrote:
>
>> I whole-heartedly agree with the sentiment, though. We need to get rid
>> of the global reactor.
>
> Why?
>
> I find the "pass reactor as 1st argument to everything" API pattern
> messy. I'm
On 01/11/11 15:28, Christopher Armstrong wrote:
> I whole-heartedly agree with the sentiment, though. We need to get rid
> of the global reactor.
Why?
I find the "pass reactor as 1st argument to everything" API pattern
messy. I'm sure there's a good reason. What is it?
On Tue, Nov 1, 2011 at 10:49 AM, Laurens Van Houtven <_...@lvh.cc> wrote:
> +1.
>
> Agree completely, did not realize this was still a point of contention.
>
>
I think the only point of contention would be if you're trying to modify an
existing piece of code that uses the global reactor, and you
+1.
Agree completely, did not realize this was still a point of contention.
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Hello,
I'd like for us to decide that we will introduce no new unit tests into
Twisted's test suite which use the global reactor.
These tests require extra complexity in trial - to support the Deferred,
to check for left over event sources (incompletely implemented), and to
clean up left over
30 matches
Mail list logo