Message318855
I would suggest adding this to the what's new document https://docs.python.org/3.7/whatsnew/3.7.html. The change affects user-facing code (the exact_type attribute of TokenInfo is OP for ... and -> tokens prior to this patch).
I would also point out that this directly contradicts the documentation (from https://docs.python.org/3/library/tokenize.html, "To simplify token stream handling, all operator and delimiter tokens and Ellipsis are returned using the generic OP token type. The exact type can be determined by checking the exact_type property on the named tuple returned from tokenize.tokenize()."), so I don't see why it can't be backported. |
|
Date |
User |
Action |
Args |
2018-06-06 17:33:02 | Aaron.Meurer | set | recipients:
+ Aaron.Meurer, skrah, meador.inge, veky, Jim Fasarakis-Hilliard |
2018-06-06 17:33:02 | Aaron.Meurer | set | messageid: <1528306382.03.0.592728768989.issue24622@psf.upfronthosting.co.za> |
2018-06-06 17:33:02 | Aaron.Meurer | link | issue24622 messages |
2018-06-06 17:33:01 | Aaron.Meurer | create | |
|