Searched refs:groupindex (Results 1 – 9 of 9) sorted by relevance
/third_party/python/Lib/ |
D | csv.py | 232 groupindex = regexp.groupindex 234 n = groupindex['quote'] - 1 239 n = groupindex['delim'] - 1 246 n = groupindex['space'] - 1
|
D | sre_compile.py | 775 groupindex = p.state.groupdict 777 for k, i in groupindex.items(): 783 groupindex, tuple(indexgroup)
|
D | sre_parse.py | 986 groupindex = state.groupindex 1001 index = groupindex[name]
|
/third_party/python/Modules/ |
D | _sre.c | 569 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 …]
|
D | sre.h | 30 PyObject* groupindex; /* dict */ member
|
/third_party/python/Modules/clinic/ |
D | _sre.c.h | 556 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/ |
D | test_re.py | 629 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/ |
D | 3.5.0a3.rst | 65 The groupindex attribute of regular expression pattern object now is
|
/third_party/python/Doc/library/ |
D | re.rst | 1122 .. attribute:: Pattern.groupindex
|