Re: [Twisted-Python] reactor.callLater question

2011-11-15 Thread Glyph
On Nov 15, 2011, at 9:57 AM, exar...@twistedmatrix.com wrote: > On 02:33 pm, tobias.oberst...@tavendo.de wrote: >> 2 short questions .. please consider: >> >> a) >> reactor.callLater(0, fun1) >> reactor.callLater(0, fun2) >> >> Is that allowed .. delay == 0? It seems to work .. but I want to be

Re: [Twisted-Python] logging question

2011-11-15 Thread Christopher Armstrong
On Tue, Nov 15, 2011 at 11:36 AM, Jeffrey Ollie wrote: > I'm using twisted.python.log to do some logging in an application. > It's formatting the output like " [-] ". I've seen > in some of my other applications that the contents of "[-]" can change > depending on how the code is reached. Is th

[Twisted-Python] logging question

2011-11-15 Thread Jeffrey Ollie
I'm using twisted.python.log to do some logging in an application. It's formatting the output like " [-] ". I've seen in some of my other applications that the contents of "[-]" can change depending on how the code is reached. Is there a way that I can customize this in my application? I'd like

Re: [Twisted-Python] reactor.callLater question

2011-11-15 Thread Antoine Pitrou
On Tue, 15 Nov 2011 14:57:17 - exar...@twistedmatrix.com wrote: > >b) > >reactor.callLater(T, fun1) > >reactor.callLater(T, fun2) > > > >Is the call _order_ first fun1, then fun2 _guaranteed_? > >For every T, and in particular T == 0? > > This isn't guaranteed. It's been proposed that it shou

Re: [Twisted-Python] reactor.callLater question

2011-11-15 Thread exarkun
On 02:33 pm, tobias.oberst...@tavendo.de wrote: >2 short questions .. please consider: > >a) >reactor.callLater(0, fun1) >reactor.callLater(0, fun2) > >Is that allowed .. delay == 0? It seems to work .. but I want to be >sure. Yep. It's allowed. It means to run the function pretty soon, but not

[Twisted-Python] reactor.callLater question

2011-11-15 Thread Tobias Oberstein
2 short questions .. please consider: a) reactor.callLater(0, fun1) reactor.callLater(0, fun2) Is that allowed .. delay == 0? It seems to work .. but I want to be sure. b) reactor.callLater(T, fun1) reactor.callLater(T, fun2) Is the call _order_ first fun1, then fun2 _guaranteed_? For every T,

Re: [Twisted-Python] data dispatch on massive connection counts

2011-11-15 Thread Tobias Oberstein
> > and the fact that Python uses fopen() from libc, not open() from Posix > > I know you've solved it know, but just to check, you are of course aware of > os.open (which maps directly to Posix open) Yes, thanks, I am aware. However, i.e. Twisted Web uses open(), not os.open(): twisted.python.

Re: [Twisted-Python] data dispatch on massive connection counts

2011-11-15 Thread Phil Mayers
On 11/14/2011 05:57 PM, Tobias Oberstein wrote: > and the fact that Python uses fopen() from libc, not open() from Posix I know you've solved it know, but just to check, you are of course aware of os.open (which maps directly to Posix open) ___ Twiste