In python 3,
>>> import keyword
>>> keyword.kwlist
and
>>> import builtins
>>> dir(builtins)
are two different lists, yet they have some common values, specifically
>>> set(dir(builtins)) & set(keyword.kwlist)
{'False', 'True', 'None'}
What is the difference of keywords and builtins in python? and when are 'False', 'None', 'True' keywords and when are they builtins? (if that makes any difference)