[issue29146] Confusing "invalid token" exception when integers have leading zero

2017-01-03 Thread Berker Peksag
Berker Peksag added the comment: Thanks for finding the duplicate. I'm closing this as a duplicate of issue 20608. -- components: -2to3 (2.x to 3.x conversion tool), Documentation nosy: +berker.peksag -docs@python resolution: -> duplicate stage: -> resolved status: open -> closed sup

[issue29146] Confusing "invalid token" exception when integers have leading zero

2017-01-03 Thread John Parejko
John Parejko added the comment: Ah, I finally found a related issue, and it looks like it has patches! https://bugs.python.org/issue20608 If someone could check that over and merge it, that would be wonderful! -- ___ Python tracker

[issue29146] Confusing "invalid token" exception when integers have leading zero

2017-01-03 Thread John Parejko
New submission from John Parejko: As described in PEP-3127, the "leading-zeros" formatting for octal was removed from python 3. This is a good thing(tm), but the recommendation of that PEP to improve the error message of the raised exception[1] was apparently never implemented. I just ran into