Searched refs:iskeyword (Results 1 – 12 of 12) sorted by relevance
7 self.assertTrue(keyword.iskeyword('True'))10 self.assertFalse(keyword.iskeyword('TRUE'))13 self.assertFalse(keyword.iskeyword(None))21 self.assertFalse(keyword.iskeyword('eggs'))
62 iskeyword = frozenset(kwlist).__contains__ variable
1382 if keyword.iskeyword(name):
7 from keyword import iskeyword212 iskeyword(str[i:pos]) and
15 .. function:: iskeyword(s)
1755 Call :func:`keyword.iskeyword` to test whether string ``s`` is a reserved1761 >>> from keyword import iskeyword1763 >>> 'hello'.isidentifier(), iskeyword('hello')1765 >>> 'def'.isidentifier(), iskeyword('def')
54 elif keyword.iskeyword(tok_str):
248 return keyword.iskeyword(self.value)
35 from keyword import iskeyword as _iskeyword
13 from keyword import iskeyword as is_python_keyword
6 from keyword import iskeyword as is_python_keyword