Searched refs:isidentifier (Results 1 – 18 of 18) 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('.'))
683 if not name.isidentifier():689 if not name.isidentifier():752 if condname.isidentifier():981 if name.isidentifier():
647 elif initial.isidentifier(): # ordinary name
1187 if not isinstance(name, str) or not name.isidentifier():
121 if name.isidentifier():
2502 if not name.isidentifier():
696 self.assertTrue("a".isidentifier())697 self.assertTrue("Z".isidentifier())698 self.assertTrue("_".isidentifier())699 self.assertTrue("b0".isidentifier())700 self.assertTrue("bc".isidentifier())701 self.assertTrue("b_".isidentifier())702 self.assertTrue("µ".isidentifier())703 self.assertTrue("".isidentifier())705 self.assertFalse(" ".isidentifier())706 self.assertFalse("[".isidentifier())[all …]
350 if (not name.isidentifier()360 if not name.isidentifier():1233 def isidentifier(self): return self.data.isidentifier() member in UserString
21 self.assertFalse(name.isidentifier(), msg=repr(name))
150 Code calling ``obj.isidentifier`` needs to change to ``_isidentifier(obj)``.
503 elif initial.isidentifier(): # ordinary name
578 if check_ident and not value.isidentifier():
101 _isidentifier = str.isidentifier
186 if not name.isidentifier():
167 if not name.isidentifier():
123 _isidentifier = str.isidentifier
1696 .. method:: str.isidentifier()