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. -- http://mail.python.org/mailman/listinfo/python-list