Home
last modified time | relevance | path

Searched refs:attr_chain (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython3/Lib/lib2to3/fixes/
Dfix_renames.py11 from ..fixer_util import Name, attr_chain
53 if any(match(obj) for obj in attr_chain(node, "parent")):
Dfix_imports.py6 from ..fixer_util import Name, attr_chain
113 any(match(obj) for obj in attr_chain(node, "parent")):
/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_renames.py11 from ..fixer_util import Name, attr_chain
53 if any(match(obj) for obj in attr_chain(node, "parent")):
Dfix_imports.py6 from ..fixer_util import Name, attr_chain
113 any(match(obj) for obj in attr_chain(node, "parent")):
/external/python/cpython3/Modules/
D_operator.c1174 PyObject *attr_chain = PyTuple_New(dot_count + 1); in attrgetter_new() local
1180 if (attr_chain == NULL) { in attrgetter_new()
1193 Py_DECREF(attr_chain); in attrgetter_new()
1198 PyTuple_SET_ITEM(attr_chain, attr_chain_idx, attr_chain_item); in attrgetter_new()
1207 Py_DECREF(attr_chain); in attrgetter_new()
1212 PyTuple_SET_ITEM(attr_chain, attr_chain_idx, attr_chain_item); in attrgetter_new()
1214 PyTuple_SET_ITEM(attr, idx, attr_chain); in attrgetter_new()
/external/python/cpython3/Lib/lib2to3/
Dfixer_util.py191 def attr_chain(obj, attr): function
242 for pattern, parent in zip(patterns, attr_chain(node, "parent")):
/external/python/cpython2/Lib/lib2to3/
Dfixer_util.py170 def attr_chain(obj, attr): function
221 for pattern, parent in zip(patterns, attr_chain(node, "parent")):