[issue11926] help("keywords") returns incomplete list of keywords

Ezio Melotti report at bugs.python.org
Tue Apr 26 04:03:55 CEST 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

True, False and None are also included in keyword.kwlist:
>>> keyword.kwlist
['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']

The help() is also missing for 'None' and 'False', but works for 'True':

>>> help('None')
no Python documentation found for 'None'
>>> help('False')
no Python documentation found for 'False'
>>> help('True')
Help on bool object:

True = class bool(int)
 |  bool(x) -> bool
 ...

On 3.3 it's the same.

----------
nosy: +ezio.melotti
stage:  -> needs patch
versions: +Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11926>
_______________________________________


More information about the Python-bugs-list mailing list