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
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
.
- Paul Goins
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
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
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
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
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
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
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
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
10 matches
Mail list logo