Searched refs:isidentifier (Results 1 – 21 of 21) 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():
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():
589 elif initial.isidentifier(): # ordinary name
1218 if not isinstance(name, str) or not name.isidentifier():
123 if name.isidentifier():
2550 if not name.isidentifier():
22 if ("a" + s).isidentifier() and not re.match(r"\w", s):
709 self.assertTrue("a".isidentifier())710 self.assertTrue("Z".isidentifier())711 self.assertTrue("_".isidentifier())712 self.assertTrue("b0".isidentifier())713 self.assertTrue("bc".isidentifier())714 self.assertTrue("b_".isidentifier())715 self.assertTrue("µ".isidentifier())716 self.assertTrue("".isidentifier())718 self.assertFalse(" ".isidentifier())719 self.assertFalse("[".isidentifier())[all …]
379 if (not name.isidentifier()389 if not name.isidentifier():1418 def isidentifier(self): member in UserString1419 return self.data.isidentifier()
35 self.assertFalse(name.isidentifier(), msg=repr(name))
108 Code calling ``obj.isidentifier`` needs to change to ``_isidentifier(obj)``.
503 elif initial.isidentifier(): # ordinary name
600 if not value.isidentifier():
578 if check_ident and not value.isidentifier():
27 Fixed :meth:`str.isidentifier` for non-canonicalized strings containing
186 if not name.isidentifier():
101 _isidentifier = str.isidentifier
111 _isidentifier = str.isidentifier
184 if not name.isidentifier():
1716 .. method:: str.isidentifier()1729 >>> 'hello'.isidentifier(), iskeyword('hello')1731 >>> 'def'.isidentifier(), iskeyword('def')