Searched refs:attr_chain (Results 1 – 4 of 4) sorted by relevance
/third_party/python/Lib/lib2to3/fixes/ |
D | fix_renames.py | 11 from ..fixer_util import Name, attr_chain 53 if any(match(obj) for obj in attr_chain(node, "parent")):
|
D | fix_imports.py | 6 from ..fixer_util import Name, attr_chain 113 any(match(obj) for obj in attr_chain(node, "parent")):
|
/third_party/python/Modules/ |
D | _operator.c | 1204 PyObject *attr_chain = PyTuple_New(dot_count + 1); in attrgetter_new() local 1210 if (attr_chain == NULL) { in attrgetter_new() 1223 Py_DECREF(attr_chain); in attrgetter_new() 1228 PyTuple_SET_ITEM(attr_chain, attr_chain_idx, attr_chain_item); in attrgetter_new() 1237 Py_DECREF(attr_chain); in attrgetter_new() 1242 PyTuple_SET_ITEM(attr_chain, attr_chain_idx, attr_chain_item); in attrgetter_new() 1244 PyTuple_SET_ITEM(attr, idx, attr_chain); in attrgetter_new()
|
/third_party/python/Lib/lib2to3/ |
D | fixer_util.py | 191 def attr_chain(obj, attr): function 242 for pattern, parent in zip(patterns, attr_chain(node, "parent")):
|