Home
last modified time | relevance | path

Searched refs:isidentifier (Results 1 – 21 of 21) 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.py701 if not name.isidentifier():
707 if not name.isidentifier():
770 if condname.isidentifier():
999 if name.isidentifier():
Dtokenize.py589 elif initial.isidentifier(): # ordinary name
Ddataclasses.py1218 if not isinstance(name, str) or not name.isidentifier():
Dargparse.py123 if name.isidentifier():
Dinspect.py2550 if not name.isidentifier():
/external/python/jinja/scripts/
Dgenerate_identifier_pattern.py22 if ("a" + s).isidentifier() and not re.match(r"\w", s):
/external/python/cpython3/Lib/test/
Dtest_unicode.py709 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 …]
/external/python/cpython3/Lib/collections/
D__init__.py379 if (not name.isidentifier()
389 if not name.isidentifier():
1418 def isidentifier(self): member in UserString
1419 return self.data.isidentifier()
/external/python/cpython3/Lib/tkinter/test/test_tkinter/
Dtest_misc.py35 self.assertFalse(name.isidentifier(), msg=repr(name))
/external/python/mock/docs/
Dindex.txt108 Code calling ``obj.isidentifier`` needs to change to ``_isidentifier(obj)``.
/external/python/cpython3/Lib/lib2to3/pgen2/
Dtokenize.py503 elif initial.isidentifier(): # ordinary name
/external/python/jinja/src/jinja2/
Dlexer.py600 if not value.isidentifier():
/external/libchrome/third_party/jinja2/
Dlexer.py578 if check_ident and not value.isidentifier():
/external/python/cpython3/Misc/NEWS.d/
D3.9.0b1.rst27 Fixed :meth:`str.isidentifier` for non-canonicalized strings containing
/external/python/cpython2/Lib/test/
D_mock_backport.py186 if not name.isidentifier():
/external/pdfium/third_party/pymock/
Dmock.py101 _isidentifier = str.isidentifier
/external/python/mock/mock/
Dmock.py111 _isidentifier = str.isidentifier
/external/python/cpython3/Lib/unittest/
Dmock.py184 if not name.isidentifier():
/external/python/cpython3/Doc/library/
Dstdtypes.rst1716 .. method:: str.isidentifier()
1729 >>> 'hello'.isidentifier(), iskeyword('hello')
1731 >>> 'def'.isidentifier(), iskeyword('def')