variations in python 2.7 breaks preppy
in ubuntu 18.04 lts I have updated python from the original 2.7.15rc1 to 2.7.15+; unfortunately that breaks preppy < 2.7.0 which worked well before the upgrade. Is there somewhere I can see what patches have been made to Python 2.7.15?
I have built python 2.7.16 directly and the breakage is not present in that version.
The breakage seems to be in the tokenizer module which causes an extra newline token to appear in this code
#######
from StringIO import StringIO
import tokenize, token
L = []
s='i'
tokenize.
print('L=%s' % repr(L))
#######
in 2.7.15rc1 [(1, 'i', (1, 0), (1, 1), 'i'), (0, '', (2, 0), (2, 0), '')], 2.7.15+ [(1, 'i', (1, 0), (1, 1), 'i'), (4, '', (1, 1), (1, 2), ''), (0, '', (2, 0), (2, 0), '')]
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply: