[Twisted-Python] Please help: having problems with the simplest Twisted Server/Client Demo Example from the Tutorial
sajitrao at gmail.com
Sun Dec 9 16:18:05 EST 2007
Thanks Itamar, That was exactly the problem. The Twisted server/client
example runs fine when the program is run directly (> python.exe mycode.py)
but not when imported at the python prompt.
On Dec 8, 2007 8:27 PM, Itamar Shtull-Trauring <itamar at itamarst.org> wrote:
> 1. Certain Python prompts (e.g. idle) may not work well with Twisted.
> Better to run the program directly:
> python.exe myscript.py
> 2. Might want to start a log:
> from twisted.python import log
> 3. Might want to flush when writing to stdout().
> At first glance, however, your code looks fine.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python