Re: [Twisted-Python] [twisted-python] a problem about reactor

2010-03-29 Thread Joson Mandaro
Thank you. So it is the point that I've disregarded before. 2010/3/29 Bo Shi > Joson, this doesn't have anything to do with the reactor (aside from > perhaps it forcing you to ctrl-c to stop the program). You never 1. > close() the file or 2. flush() the contents of the file to disk. > > Sent f

Re: [Twisted-Python] How to use AmpList?

2010-03-29 Thread Vlad Shevchenko
Thanks, nice point to dive in. On Mon, Mar 29, 2010 at 4:52 PM, David Ripton wrote: > On 2010.03.27 23:45:42 +0200, Vlad Shevchenko wrote: > > Hi, > > can't find any reference of how to use AmpList. What should be passed to > > callRemote? In command: arguments = Amp.List(...) or arguments = > [

Re: [Twisted-Python] How to use AmpList?

2010-03-29 Thread Vlad Shevchenko
Thank you, it helps a lot. I've made a mistake in calling callRemote. On Mon, Mar 29, 2010 at 4:51 PM, Peter Westlake wrote: > > > On Mon, 29 Mar 2010 14:54 +0300, "Vlad Shevchenko" > wrote: > > No one use AmpList? > > > > On Sat, Mar 27, 2010 at 11:45 PM, Vlad Shevchenko > > > > wrote: > > > >

Re: [Twisted-Python] Supported Python versions for Twisted 10.0

2010-03-29 Thread Jonathan Lange
On Mon, Mar 29, 2010 at 3:52 PM, Albert Brandl wrote: > Hi! > > By chance, I recently found the following comment by Glyph on Stack Overflow > (dated Oct > 18 '08): > >> Right now, Twisted supports python 2.3 to 2.5. Currently, we're working on >> 2.6 support >> (which we'll obviously have to fi

[Twisted-Python] Supported Python versions for Twisted 10.0

2010-03-29 Thread Albert Brandl
Hi! By chance, I recently found the following comment by Glyph on Stack Overflow (dated Oct 18 '08): > Right now, Twisted supports python 2.3 to 2.5. Currently, we're working on > 2.6 support > (which we'll obviously have to finish before 3.0!). What are the supported Python versions for the

Re: [Twisted-Python] [twisted-python] a problem about reactor

2010-03-29 Thread Bo Shi
Joson, this doesn't have anything to do with the reactor (aside from perhaps it forcing you to ctrl-c to stop the program). You never 1. close() the file or 2. flush() the contents of the file to disk. Sent from my mobile phone. Please excuse any typos. On Mar 29, 2010, at 11:04, Joson Mandaro

Re: [Twisted-Python] [twisted-python] a problem about reactor

2010-03-29 Thread Albert Brandl
Hi! On Mon, Mar 29, 2010 at 11:04:25PM +0800, Joson Mandaro wrote: >Then it won't write anything into test1.txt. When I deleted >"reactor.run()", it will write contents. It is interesting but I don't >know why the reactor blocks file writing. Try the same code in the interpreter and c

[Twisted-Python] [twisted-python] a problem about reactor

2010-03-29 Thread Joson Mandaro
Hi all, I'm puzzled by this code: # -*- coding: utf-8 -*- from twisted.web.client import reactor f = open("test1.txt","w") f.write("html") reactor.run() Then it won't write anything into test1.txt. When I deleted "reactor.run()", it will write contents. It is interesting but I don't know why th

Re: [Twisted-Python] NetstringReceiver

2010-03-29 Thread exarkun
On 11:11 am, albert.bra...@weiermayer.com wrote: >On Fri, Mar 26, 2010 at 12:08:02PM -, exar...@twistedmatrix.com >wrote: >> >>So, are you sure this is testing what you think it's testing? > >Yes. This test was already there, and it failed in unexpected ways, so >I >had to look at it quite cl

Re: [Twisted-Python] How to use AmpList?

2010-03-29 Thread Peter Westlake
On Mon, 29 Mar 2010 14:54 +0300, "Vlad Shevchenko" wrote: > No one use AmpList? > > On Sat, Mar 27, 2010 at 11:45 PM, Vlad Shevchenko > > wrote: > > > Hi, > > can't find any reference of how to use AmpList. What should be passed to > > callRemote? In command: arguments = Amp.List(...) or argu

Re: [Twisted-Python] How to use AmpList?

2010-03-29 Thread David Ripton
On 2010.03.27 23:45:42 +0200, Vlad Shevchenko wrote: > Hi, > can't find any reference of how to use AmpList. What should be passed to > callRemote? In command: arguments = Amp.List(...) or arguments = [('param', > AmpList(...))]? Responder params? > > Please, advice some refs or examples. There a

Re: [Twisted-Python] NetstringReceiver

2010-03-29 Thread Albert Brandl
On Fri, Mar 26, 2010 at 12:08:02PM -, exar...@twistedmatrix.com wrote: > > So, are you sure this is testing what you think it's testing? Yes. This test was already there, and it failed in unexpected ways, so I had to look at it quite closely. I'm not too happy about it, since it tests sever

Re: [Twisted-Python] How to use AmpList?

2010-03-29 Thread Vlad Shevchenko
No one use AmpList? On Sat, Mar 27, 2010 at 11:45 PM, Vlad Shevchenko wrote: > Hi, > can't find any reference of how to use AmpList. What should be passed to > callRemote? In command: arguments = Amp.List(...) or arguments = [('param', > AmpList(...))]? Responder params? > > Please, advice some