> "Andrew" == Andrew Bennetts writes:
Andrew> I think the key thing is to remember there are two distinct parts:
Andrew> 1) an operation (which eventually will have a result or failure)
Andrew> 2) a result
Andrew> A Deferred takes care of managing 2. It's a placeholder for that
Andrew>
On Jan 5, 2010, at 2:29 AM, Devraj Mukherjee wrote:
> Hi all,
>
> I am new to Twisted, please be gentle :)
>
> Is it possible to ask the Twisted application to run in a sea prate thread?
There are no sea pirates in Twisted.
S
___
Twisted-Python ma
Hi again Glyph, Andrew
Below is a simpler and more flexible ControllableDeferred class.
The idea is simple: you want a deferred that you can call/errback yourself,
and which you can also deactivate so that it never fires. This is done by
manipulating two normal deferreds (self, and a deferred re
Argh. sorry, there was a trivial cut & paste error in the code I just
posted. The errback method should of course be:
def errback(self, fail=None):
if not self._called:
self._called = True
defer.Deferred.errback(self, fail)
Terry
_
Hi Devraj,
> Is it possible to ask the Twisted application to run in a sea prate thread?
Yes it is possible. Simply start the reactor in a thread, but run it as:
reactor.run(installSignalHandlers=False)
If you do it this way you're going to have to handle signals yourself.
You're going to have
>On Thu, Dec 24, 2009 at 09:41:11AM -0500, Gerrat Rickert wrote:
>> [snip]
>> >http://twistedmatrix.com/trac/ticket/3956
>> >Add arraysize option to runQuery in adbapi
>>
>> Well, as the guy who initiated this ticket, I'm certainly using
>> adbapi.ConnectionPool with cx_Oracle. I'm not currently u
On Mon, Jan 4, 2010 at 10:53 PM, Tim Allen wrote:
> On Mon, Jan 04, 2010 at 11:23:37PM -0500, James Y Knight wrote:
> > On Jan 4, 2010, at 8:32 PM, Tim Allen wrote:
> > > while Grid Tables look pretty, actually editing them requires an Emacs
> > > mode, or a lot of patience.
> >
> > But when you
On Tue, Jan 5, 2010 at 6:29 AM, Terry Jones wrote:
> - Once someone has made a function call, gotten a deferred, added
> call/errbacks to it, etc., it's gone. It's in flight. Forget about it.
The thing is, this attitude isn't always reasonable. Deferred is not
necessarily the place to implement
On Jan 5, 2010, at 2:12 PM, Tristan Seligmann wrote:
> On Tue, Jan 5, 2010 at 6:29 AM, Terry Jones wrote:
>> - Once someone has made a function call, gotten a deferred, added
>> call/errbacks to it, etc., it's gone. It's in flight. Forget about it.
>
> The thing is, this attitude isn't always
Hi, we're trying to using pyinstaller to create single-directory
distributions of our Twisted/python server on Linux. Wondering if anyone has
accomplished this? I googled and checked the archives, but there seems to be
no concrete information available.
I'm real new to pyinstaller and not really f
> "Tristan" == Tristan Seligmann writes:
Tristan> On Tue, Jan 5, 2010 at 6:29 AM, Terry Jones wrote:
>> - Once someone has made a function call, gotten a deferred, added
>> ?call/errbacks to it, etc., it's gone. It's in flight. Forget about it.
Tristan> The thing is, this attitude isn't alw
> "Glyph" == Glyph Lefkowitz writes:
Glyph> And let's not forget, in long-running servers, it's possible to
Glyph> "leak" operations, and the associated resources like file
Glyph> descriptors. When the caller says that they're not interested in
Glyph> the result of an operation any more, the
12 matches
Mail list logo