Searched refs:isidentifier (Results 1 – 20 of 20) sorted by relevance
189 while i - 4 >= limit and ('a' + str[i - 4:pos]).isidentifier():191 if i - 2 >= limit and ('a' + str[i - 2:pos]).isidentifier():193 if i - 1 >= limit and ('a' + str[i - 1:pos]).isidentifier():200 if not str[i:pos].isidentifier():
312 elif not isinstance(field, str) or not field.isidentifier():320 elif not field.isidentifier() or fmt.isidentifier():
123 mod_ok = all(part.isidentifier() for part in mod.split('.'))124 fn_ok = all(part.isidentifier() for part in fn.split('.'))
701 if not name.isidentifier():707 if not name.isidentifier():770 if condname.isidentifier():999 if name.isidentifier():
591 elif initial.isidentifier(): # ordinary name
1380 if not isinstance(name, str) or not name.isidentifier():
123 if name.isidentifier():
2665 if not name.isidentifier():
736 self.assertTrue("a".isidentifier())737 self.assertTrue("Z".isidentifier())738 self.assertTrue("_".isidentifier())739 self.assertTrue("b0".isidentifier())740 self.assertTrue("bc".isidentifier())741 self.assertTrue("b_".isidentifier())742 self.assertTrue("µ".isidentifier())743 self.assertTrue("".isidentifier())745 self.assertFalse(" ".isidentifier())746 self.assertFalse("[".isidentifier())[all …]
362 if (not name.isidentifier()372 if not name.isidentifier():1462 def isidentifier(self): member in UserString1463 return self.data.isidentifier()
503 elif initial.isidentifier(): # ordinary name
36 self.assertFalse(name.isidentifier(), msg=repr(name))
638 if check_ident and not value.isidentifier():
578 if check_ident and not value.isidentifier():
642 if not value.isidentifier():
27 Fixed :meth:`str.isidentifier` for non-canonicalized strings containing
506 if parsed.parent.isidentifier():
188 if not name.isidentifier():
1757 .. method:: str.isidentifier()1770 >>> 'hello'.isidentifier(), iskeyword('hello')1772 >>> 'def'.isidentifier(), iskeyword('def')