Re: [Twisted-Python] Problems with inlineCallback, Deferred, yield and Python 3 in buildbot

2017-01-26 Thread Glyph Lefkowitz
> On Jan 26, 2017, at 1:45 AM, Craig Rodrigues wrote: > > On Wed, Jan 25, 2017 at 10:06 AM, Phil Mayers > wrote: > > Related, see: > >

Re: [Twisted-Python] Problems with inlineCallback, Deferred, yield and Python 3 in buildbot

2017-01-26 Thread Craig Rodrigues
On Wed, Jan 25, 2017 at 10:06 AM, Phil Mayers wrote: > > Related, see: > > http://stackoverflow.com/questions/32139885/yield-in-list- > comprehensions-and-generator-expressions > > http://bugs.python.org/issue10544 > > Basically, don't use yield inside comprehensions if

Re: [Twisted-Python] Problems with inlineCallback, Deferred, yield and Python 3 in buildbot

2017-01-26 Thread Craig Rodrigues
On Tue, Jan 24, 2017 at 12:48 PM, Craig Rodrigues wrote: > > > On Mon, Jan 23, 2017 at 5:10 PM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > >> On Mon, Jan 23, 2017 at 7:08 PM, Craig Rodrigues >> wrote: >> >>> >>> >>> >>> I did some

Re: [Twisted-Python] Problems with inlineCallback, Deferred, yield and Python 3 in buildbot

2017-01-25 Thread Phil Mayers
On 24/01/2017 21:14, Glyph Lefkowitz wrote: I've encountered this before and quickly worked around it, but I think this might actually be a bug in python 3, or at least its documentation. The language docs officially say that a "list display" (which is what I believe we're looking at here)

Re: [Twisted-Python] Problems with inlineCallback, Deferred, yield and Python 3 in buildbot

2017-01-24 Thread Glyph Lefkowitz
> On Jan 24, 2017, at 1:14 PM, Glyph Lefkowitz wrote: > > The language docs officially say that a "list display" (which is what I > believe we're looking at here) "yields a new list object". But that is not > what I see here: > I had intended to paste the

Re: [Twisted-Python] Problems with inlineCallback, Deferred, yield and Python 3 in buildbot

2017-01-24 Thread Glyph Lefkowitz
> On Jan 24, 2017, at 12:48 PM, Craig Rodrigues wrote: > > > > On Mon, Jan 23, 2017 at 5:10 PM, Jean-Paul Calderone > > wrote: > On Mon, Jan 23, 2017 at 7:08 PM, Craig Rodrigues

Re: [Twisted-Python] Problems with inlineCallback, Deferred, yield and Python 3 in buildbot

2017-01-24 Thread Craig Rodrigues
On Mon, Jan 23, 2017 at 5:10 PM, Jean-Paul Calderone < exar...@twistedmatrix.com> wrote: > On Mon, Jan 23, 2017 at 7:08 PM, Craig Rodrigues > wrote: > >> >> >> >> I did some more debugging. The callstack is quite deep. :/ >> I used this command to trigger the error: >>

Re: [Twisted-Python] Problems with inlineCallback, Deferred, yield and Python 3 in buildbot

2017-01-23 Thread Jean-Paul Calderone
On Mon, Jan 23, 2017 at 7:08 PM, Craig Rodrigues wrote: > > > On Sat, Jan 21, 2017 at 8:06 PM, Glyph Lefkowitz > wrote: > >> >> On Jan 21, 2017, at 6:15 PM, Craig Rodrigues >> wrote: >> >> If I run the test on Python 2, I

Re: [Twisted-Python] Problems with inlineCallback, Deferred, yield and Python 3 in buildbot

2017-01-23 Thread Craig Rodrigues
On Sat, Jan 21, 2017 at 8:06 PM, Glyph Lefkowitz wrote: > > On Jan 21, 2017, at 6:15 PM, Craig Rodrigues > wrote: > > If I run the test on Python 2, I don't get the error, and on line 93, > brdicts is a dict. > However, if I run the test on

Re: [Twisted-Python] Problems with inlineCallback, Deferred, yield and Python 3 in buildbot

2017-01-21 Thread Glyph Lefkowitz
> On Jan 21, 2017, at 6:15 PM, Craig Rodrigues wrote: > > If I run the test on Python 2, I don't get the error, and on line 93, brdicts > is a dict. > However, if I run the test on Python 3, brdicts is a Deferred, thus the error. This really ought to be impossible. If

[Twisted-Python] Problems with inlineCallback, Deferred, yield and Python 3 in buildbot

2017-01-21 Thread Craig Rodrigues
Hi, I have been submitting many patches to get buildbot working on Python 3: http://bit.ly/2jCCMPW I have run into one problem involving inlineCallback, Deferred, and yield which I am having difficulty solving. Can someone help me? If I do the following inside a Python 3 virtualenv to set