Re: [Twisted-Python] How to exit a twistd program with a status code ?

2010-09-24 Thread Paul Goins
And then, you end up with possibly a really simple .tac file: import myapp.tacapp application = myapp.tacapp.create_application() That seems to give the best of both worlds from what I've seen. Haven't seen any key drawbacks yet. - Paul Goins

Re: [Twisted-Python] Strange error: SQL-Server tries to rollback

2010-09-10 Thread Paul Goins
to rollback. I don't see any of the Twisted code you're trying; I only see a traceback and it doesn't really give enough information. Any chance you could give us a short, self-contained example which demonstrates the problem? (http://sscce.org/) - Paul Goins

Re: [Twisted-Python] Strange error: SQL-Server tries to rollback

2010-09-10 Thread Paul Goins
. - Paul Goins ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Strange error: SQL-Server tries to rollback

2010-09-10 Thread Paul Goins
blocks, but there's some gotchas. inlineCallbacks is what I used when I was learning Twisted, and you may want to try that for now. But please understand that it hides details about how Deferreds and callbacks really work. When you find time, read the Deferred docs. Best of luck, - Paul

Re: [Twisted-Python] Using cProfile instead of hotshot with twistd

2010-08-11 Thread Paul Goins
Let me ask this: if you use the exact same command line, but change --profiler cprofile to --profiler profile, is the file generated? - Paul Goins On 8/11/2010 6:39 AM, Jason J. W. Williams wrote: I'm not sure what's wrong then. Tried your command line and got nothing written. Tried

Re: [Twisted-Python] Using cProfile instead of hotshot with twistd

2010-08-06 Thread Paul Goins
Add --savestats. I'm on 8.2.0, but it probably should still work. - Paul Goins On 8/7/2010 8:20 AM, Jason J. W. Williams wrote: Hi, I'm having an issue using twistd with --profiler=cprofile. I was using hotshot, but there's a bug in loading big profile logs with it so I'm trying cProfile

[Twisted-Python] inlineCallbacks vs explicit callbacks: performance concerns?

2010-05-09 Thread Paul Goins
in the Twisted core code; I only see its definition and the defgen test which uses it. I'm curious of the reason why Twisted core does not use it. Is it performance related? Compatibility with older Python versions? Or something else? Thanks. - Paul Goins For those curious, here's what I'm

Re: [Twisted-Python] Seeking advice: Coping with heavy log file loads

2010-04-10 Thread Paul Goins
Just wanted to respond to the input everyone's given. Thanks a lot; I'm glad I asked. I'll probably look into the syslog route. I thought about it before, but I wasn't sure how much flexibility it gives. Given the suggestions here, I've since looked into it a little more and it seems to be the

[Twisted-Python] Seeking advice: Coping with heavy log file loads

2010-04-09 Thread Paul Goins
especially? Shots in the dark are welcome. ;-) - Paul Goins ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Try/catching yielded Exceptions and getting proper tracebacks

2010-02-22 Thread Paul Goins
Hi Terry, You're only printing the exception, not a full traceback, so you don't see much. I tend to write what you're doing as follows: [...] Excellent. I'll give it a try. I had a feeling it was something like that which I was missing. I already understood that inlineCallbacks returns