[issue25580] async and await missing from token list

2015-12-17 Thread Yury Selivanov
Yury Selivanov added the comment: Ah, I see that issue25580_2.diff does exactly what I proposed. I'm committing it. -- keywords: +easy ___ Python tracker

[issue25580] async and await missing from token list

2015-12-17 Thread Yury Selivanov
Yury Selivanov added the comment: > My only background here is via the tokenize module, which seems to currently > behave as described in > : async and await > are either NAME tokens (like ordinary identifiers and other reserved >

[issue25580] async and await missing from token list

2015-12-17 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks for the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker

[issue25580] async and await missing from token list

2015-12-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa79b2a5b2e1 by Yury Selivanov in branch '3.5': docs: Document ASYNC/AWAIT tokens (issue #25580) https://hg.python.org/cpython/rev/aa79b2a5b2e1 -- nosy: +python-dev ___ Python tracker

[issue25580] async and await missing from token list

2015-11-13 Thread SilentGhost
SilentGhost added the comment: Here is the updated wording. I'm not familiar with other such cases in the stdlib, if any one knows of another similar case, I'd be glad to correct the language to match previous usage. -- Added file: http://bugs.python.org/file41031/issue25580_2.diff

[issue25580] async and await missing from token list

2015-11-13 Thread Yury Selivanov
Yury Selivanov added the comment: > Are you suggesting that the note should state that these two are temporary? Yes, that would be great. > Or is this information available somewhere else, in What's new, for example? Not directly, I think. It was detailed to some extent in PEP 492. In

[issue25580] async and await missing from token list

2015-11-13 Thread Martin Panter
Martin Panter added the comment: Will they really be removed? What are the compatibility implications? Maybe it would be better to alias them to NAME, or keep them as unused values. -- ___ Python tracker

[issue25580] async and await missing from token list

2015-11-13 Thread Martin Panter
Martin Panter added the comment: My only background here is via the tokenize module, which seems to currently behave as described in : async and await are either NAME tokens (like ordinary identifiers and other reserved keywords)

[issue25580] async and await missing from token list

2015-11-12 Thread Martin Panter
Martin Panter added the comment: Do you have a new version of the patch? -- ___ Python tracker ___ ___

[issue25580] async and await missing from token list

2015-11-12 Thread SilentGhost
SilentGhost added the comment: Hm, not sure why the file didn't get uploaded, I clearly remember attaching it. Yury, what is the implication for this issue? Are you suggesting that the note should state that these two are temporary? Or is this information available somewhere else, in What's

[issue25580] async and await missing from token list

2015-11-12 Thread SilentGhost
SilentGhost added the comment: I've added versionchanged, since this is what's done in os, for similar lists. -- ___ Python tracker ___

[issue25580] async and await missing from token list

2015-11-12 Thread Yury Selivanov
Yury Selivanov added the comment: ASYNC/AWAIT tokens are temporary and will be removed in 3.7 -- ___ Python tracker ___

[issue25580] async and await missing from token list

2015-11-08 Thread Martin Panter
Martin Panter added the comment: I wonder if the new tokens need a “versionadded” notice. They were added in revision eeeb666a5365 for 3.5. -- nosy: +martin.panter, yselivanov ___ Python tracker

[issue25580] async and await missing from token list

2015-11-07 Thread SilentGhost
New submission from SilentGhost: With introduction of async and await tokens in 3.5 the token documentation needs updating. -- assignee: docs@python components: Documentation files: token.diff keywords: patch messages: 254281 nosy: SilentGhost, docs@python priority: normal severity:

[issue25580] async and await missing from token list

2015-11-07 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: With python 3.5, async is a token with the ASYNC type. >>> tokens = tokenize.generate_tokens(io.StringIO('async def foo').readline) >>> pprint.pprint(list(tokens)) [TokenInfo(type=55 (ASYNC), string='async', start=(1, 0), end=(1, 5), line='async def foo'),