[Twisted-Python] [RESOLVED] Re: serializing inline callbacks
Axel Rau
Axel.Rau at chaos1.de
Wed Feb 19 05:15:19 MST 2014
Am 19.02.2014 um 00:10 schrieb Dustin J. Mitchell <dustin at v.igoro.us>:
> On Tue, Feb 18, 2014 at 4:58 PM, Axel Rau <Axel.Rau at chaos1.de> wrote:
>> I see log message ‚imageMap ended‘ , but not 'In navigation.'
>> Any further advice?
>
>
> I’m guessing that you omitted @inlineCallbacks for navigation,
navigation corresponds to C.
I added @inlineCallbacks and it works.
>
> but
> that it contains a yield. In Python, that makes it a plain old
> generator expression, which just returns a generator object when you
> call it. It's a common pitfall when using inlineCallbacks.
>
> Honestly, this would be easier to discuss if you'd included a
> http://sscce.org/ at the beginning.
>
Thanks a lot,
Axel
---
PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius
More information about the Twisted-Python
mailing list