Home
last modified time | relevance | path

Searched refs:groupindex (Results 1 – 9 of 9) sorted by relevance

/third_party/python/Lib/
Dcsv.py232 groupindex = regexp.groupindex
234 n = groupindex['quote'] - 1
239 n = groupindex['delim'] - 1
246 n = groupindex['space'] - 1
Dsre_compile.py775 groupindex = p.state.groupdict
777 for k, i in groupindex.items():
783 groupindex, tuple(indexgroup)
Dsre_parse.py986 groupindex = state.groupindex
1001 index = groupindex[name]
/third_party/python/Modules/
D_sre.c569 Py_VISIT(self->groupindex); in pattern_traverse()
578 Py_CLEAR(self->groupindex); in pattern_clear()
1385 if (self->groupindex == NULL) in pattern_groupindex()
1387 return PyDictProxy_New(self->groupindex); in pattern_groupindex()
1406 PyObject *code, Py_ssize_t groups, PyObject *groupindex, in _sre_compile_impl() argument
1423 self->groupindex = NULL; in _sre_compile_impl()
1469 if (PyDict_GET_SIZE(groupindex) > 0) { in _sre_compile_impl()
1470 Py_INCREF(groupindex); in _sre_compile_impl()
1471 self->groupindex = groupindex; in _sre_compile_impl()
2038 if (self->pattern->groupindex) { in match_getindex()
[all …]
Dsre.h30 PyObject* groupindex; /* dict */ member
/third_party/python/Modules/clinic/
D_sre.c.h556 PyObject *code, Py_ssize_t groups, PyObject *groupindex,
570 PyObject *groupindex; in _sre_compile() local
603 groupindex = args[4]; in _sre_compile()
609 return_value = _sre_compile_impl(module, pattern, flags, code, groups, groupindex, indexgroup); in _sre_compile()
/third_party/python/Lib/test/
Dtest_re.py629 self.assertEqual(re.compile("(?i)(a)(b)").groupindex, {})
630 self.assertEqual(re.compile("(?i)(?P<first>a)(?P<other>b)").groupindex,
641 self.assertEqual(sorted(p.groupindex), ['first', 'other'])
642 self.assertEqual(p.groupindex['other'], 2)
644 p.groupindex['other'] = 0
645 self.assertEqual(p.groupindex['other'], 2)
2284 for i in result.re.groupindex.keys():
/third_party/python/Misc/NEWS.d/
D3.5.0a3.rst65 The groupindex attribute of regular expression pattern object now is
/third_party/python/Doc/library/
Dre.rst1122 .. attribute:: Pattern.groupindex