pyparsing ParseResults.pop() fails with NameError: global name 'index' is not defined
Bug #1381564 reported by
Данило Шеган
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyparsing (Ubuntu) |
Fix Released
|
Medium
|
Barry Warsaw |
Bug Description
pyparsing 2.0.2 (included in Ubuntu 14.10) ParseResults.pop() fails with
Traceback (most recent call last):
File "pyparsing-
res.pop()
File "/usr/lib/
ret = self[index]
NameError: global name 'index' is not defined
for a minimal test case like
from pyparsing import Word
test = Word("test")
res = test.parseStrin
res.pop()
This is fixed upstream in pyparsing 2.0.3 with the following patch:
This bug affects Landscape (mostly for development, but still).
To post a comment you must log in.
Thanks. Looks like 2.0.3 is tagged upstream but not yet released.
It would be easiest to fix this in Debian and then sync (looks like a bugfix only release, with test suite additions, so it seems pretty safe).
But to make Utopic before release, we need to cherry-pick the fix, or pull in 2.0.3 from svn or something. This would be better than having to do an SRU after release though.
I don't have upload permission and it sounds like you don't need this fixed in Utopic so I'll leave it for now. Please shout if you do need this in Utopic though.