Home
last modified time | relevance | path

Searched refs:isidentifier (Results 1 – 18 of 18) sorted by relevance

/external/python/cpython3/Lib/idlelib/
Dhyperparser.py189 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():
/external/python/cpython3/Lib/
Dzipapp.py123 mod_ok = all(part.isidentifier() for part in mod.split('.'))
124 fn_ok = all(part.isidentifier() for part in fn.split('.'))
Dsre_parse.py683 if not name.isidentifier():
689 if not name.isidentifier():
752 if condname.isidentifier():
981 if name.isidentifier():
Dtokenize.py647 elif initial.isidentifier(): # ordinary name
Ddataclasses.py1187 if not isinstance(name, str) or not name.isidentifier():
Dargparse.py121 if name.isidentifier():
Dinspect.py2502 if not name.isidentifier():
/external/python/cpython3/Lib/test/
Dtest_unicode.py696 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 …]
/external/python/cpython3/Lib/collections/
D__init__.py350 if (not name.isidentifier()
360 if not name.isidentifier():
1233 def isidentifier(self): return self.data.isidentifier() member in UserString
/external/python/cpython3/Lib/tkinter/test/test_tkinter/
Dtest_misc.py21 self.assertFalse(name.isidentifier(), msg=repr(name))
/external/python/mock/docs/
Dindex.txt150 Code calling ``obj.isidentifier`` needs to change to ``_isidentifier(obj)``.
/external/python/cpython3/Lib/lib2to3/pgen2/
Dtokenize.py503 elif initial.isidentifier(): # ordinary name
/external/libchrome/third_party/jinja2/
Dlexer.py578 if check_ident and not value.isidentifier():
/external/pdfium/third_party/pymock/
Dmock.py101 _isidentifier = str.isidentifier
/external/python/cpython2/Lib/test/
D_mock_backport.py186 if not name.isidentifier():
/external/python/cpython3/Lib/unittest/
Dmock.py167 if not name.isidentifier():
/external/python/mock/mock/
Dmock.py123 _isidentifier = str.isidentifier
/external/python/cpython3/Doc/library/
Dstdtypes.rst1696 .. method:: str.isidentifier()