Author georg.brandl
Recipients georg.brandl, kay, r.david.murray
Date 2014-04-05.19:33:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396726383.61.0.749038574104.issue21161@psf.upfronthosting.co.za>
In-reply-to
Content
Your failure appears to be not pasted from an interpreter session; the actual failure is:

(Pdb) all(x < limit for x in items)
*** NameError: global name 'limit' is not defined

(i.e. "limit" is not found, not "items").  This actually does not work in Python 2 either.  What did work in Python 2 and doesn't work in 3, is using a list comprehension like

all([x < limit for x in items])

This is because list comprehensions are now implemented with their own function object like generator expressions have always been.  To make the code in pdb compile "as if" it was put in the debugged function will be as good as impossible, so I'm closing this as won't fix.
History
Date User Action Args
2014-04-05 19:33:03georg.brandlsetrecipients: + georg.brandl, r.david.murray, kay
2014-04-05 19:33:03georg.brandlsetmessageid: <1396726383.61.0.749038574104.issue21161@psf.upfronthosting.co.za>
2014-04-05 19:33:03georg.brandllinkissue21161 messages
2014-04-05 19:33:03georg.brandlcreate