keyword checker - keyword.kwlist
Steven D'Aprano
steve at REMOVE.THIS.cybersource.com.au
Thu May 10 11:49:33 EDT 2007
On Thu, 10 May 2007 13:38:40 +0000, tom wrote:
> Hi
>
> I try to check whether a given input is keyword or not. However this
> script won't identify keyword input as a keyword. How should I modify it
> to make it work?
It works for me.
Try printing keyword.__file__ to make sure you are importing the right
file. Also try printing keyword.kwlist.
--
Steven.
More information about the Python-list
mailing list