Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` that is present on *node*.
(node)
| 280 | |
| 281 | |
| 282 | def iter_fields(node): |
| 283 | """ |
| 284 | Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` |
| 285 | that is present on *node*. |
| 286 | """ |
| 287 | for field in node._fields: |
| 288 | try: |
| 289 | yield field, getattr(node, field) |
| 290 | except AttributeError: |
| 291 | pass |
| 292 | |
| 293 | |
| 294 | def iter_child_nodes(node): |
no outgoing calls
no test coverage detected
searching dependent graphs…