[Twisted-Python] question : SerialService and an autostart application of autologin user, strange behaviour

2012-04-09 Thread bino oetomo
Dear All .. My system is an ubuntu box with openbox and Slim. in my tac file with a SerialService, I have this line serial = SerialPort(ArduinoReceiver(), '/dev/arduino', reactor,baudrate=4800) This tac file always run well when I start it manualy from xterm. I call it using an sh script : --

Re: [Twisted-Python] defer.inlineCallbacks dosn't work with cython, deferredGenerator does.

2012-04-09 Thread Glyph Lefkowitz
On Apr 9, 2012, at 9:50 PM, Andrew Bennetts wrote: > On Tue, Apr 10, 2012 at 12:41:17PM +0800, gelin yan wrote: > […] >>When trying to run inlineCallbacks with Cython, a TypeError would come >> out like: >> >> TypeError: inlineCallbacks requires to produce a >> generator; instead got > >>

Re: [Twisted-Python] defer.inlineCallbacks dosn't work with cython, deferredGenerator does.

2012-04-09 Thread gelin yan
On Tue, Apr 10, 2012 at 12:50 PM, Andrew Bennetts wrote: > On Tue, Apr 10, 2012 at 12:41:17PM +0800, gelin yan wrote: > […] > > When trying to run inlineCallbacks with Cython, a TypeError would > come > > out like: > > > > TypeError: inlineCallbacks requires to produce a > > generator; instea

Re: [Twisted-Python] defer.inlineCallbacks dosn't work with cython, deferredGenerator does.

2012-04-09 Thread Andrew Bennetts
On Tue, Apr 10, 2012 at 12:41:17PM +0800, gelin yan wrote: […] > When trying to run inlineCallbacks with Cython, a TypeError would come > out like: > > TypeError: inlineCallbacks requires to produce a > generator; instead got > test is the function where inlineCallbacks uses. > > It looks

Re: [Twisted-Python] defer.inlineCallbacks dosn't work with cython, deferredGenerator does.

2012-04-09 Thread gelin yan
On Tue, Apr 10, 2012 at 4:01 AM, Glyph Lefkowitz wrote: > On Apr 9, 2012, at 3:05 AM, gelin yan wrote: > > I personally hope deferredGenerator will be always there even python 2.4 > support has been abandoned. deferredGenerator itself is not so elegant as > inlineCallbacks, at least I don't need t

Re: [Twisted-Python] defer.inlineCallbacks dosn't work with cython, deferredGenerator does.

2012-04-09 Thread Glyph Lefkowitz
On Apr 9, 2012, at 3:05 AM, gelin yan wrote: > I personally hope deferredGenerator will be always there even python 2.4 > support has been abandoned. deferredGenerator itself is not so elegant as > inlineCallbacks, at least I don't need to struggle with a series of callback > functions.. We wo

[Twisted-Python] defer.inlineCallbacks dosn't work with cython, deferredGenerator does.

2012-04-09 Thread gelin yan
Hi All I just to let you know that defer.inlineCallbacks can't work with cython well. an example: def await(): d = defer.Deferred() reactor.callLater(3, d.callback, True) return d @defer.inlineCallbacks def host(): thing = yield await() ""do sth""" will fail to work on cython