[issue31390] pydoc.Helper.keywords missing async and await

New submission from Robert Weiner: Shouldn't async and await be added to the pydoc keywords list? ---------- assignee: docs@python components: Documentation messages: 301657 nosy: docs@python, rsw priority: normal severity: normal status: open title: pydoc.Helper.keywords missing async and await versions: Python 3.6 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31390> _______________________________________

Changes by Robert Weiner <rsw@gnu.org>: ---------- type: -> behavior _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31390> _______________________________________

Berker Peksag <berker.peksag@gmail.com> added the comment: Thank you for your report. Prior to Python 3.7, async and await keywords have had special meanings and they weren't treated as normal keywords. They are now in Python 3.7:
And they are listed as keywords: $ ./python -m pydoc keywords Here is a list of the Python keywords. Enter any keyword to get more help. False class from or None continue global pass True def if raise and del import return as elif in try assert else is while async except lambda with await finally nonlocal yield break for not So I don't think we should modify pydoc to list them as keywords in Python 3.6. ---------- nosy: +berker.peksag resolution: -> out of date stage: -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31390> _______________________________________

Changes by Robert Weiner <rsw@gnu.org>: ---------- type: -> behavior _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31390> _______________________________________

Berker Peksag <berker.peksag@gmail.com> added the comment: Thank you for your report. Prior to Python 3.7, async and await keywords have had special meanings and they weren't treated as normal keywords. They are now in Python 3.7:
And they are listed as keywords: $ ./python -m pydoc keywords Here is a list of the Python keywords. Enter any keyword to get more help. False class from or None continue global pass True def if raise and del import return as elif in try assert else is while async except lambda with await finally nonlocal yield break for not So I don't think we should modify pydoc to list them as keywords in Python 3.6. ---------- nosy: +berker.peksag resolution: -> out of date stage: -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31390> _______________________________________
participants (2)
-
Berker Peksag
-
Robert Weiner