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 :
--
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 >
>>
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
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
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
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
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