SilentGhost added the comment: >>> keyword.iskeyword('pass') True
There doesn't seem anything particular about def, none of the keywords have "keyword" type, because there doesn't seem to be one: https://docs.python.org/3.6/library/token.html ---------- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25579> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com