Skip to content

Commit ad45f05

Browse files
authored
Update output representation in sageinspect.py
- Old format: <ast.Assign object at ...> contains "Assign" - New format: Assign(targets=[...], ...) starts with "Assign"
1 parent 86f8cb5 commit ad45f05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/misc/sageinspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ class SageArgSpecVisitor(ast.NodeVisitor):
461461
sage: sorted(v.items(), key=lambda x: str(x[0]))
462462
[(37.0, 'temp'), ('a', ('e', 2, [None, ({False: True}, 'pi')]))]
463463
sage: v = ast.parse("jc = ['veni', 'vidi', 'vici']").body[0]; v
464-
<...ast.Assign object at ...>
464+
...Assign...
465465
sage: attrs = [x for x in dir(v) if not x.startswith('__')]
466466
sage: '_attributes' in attrs and '_fields' in attrs and 'col_offset' in attrs
467467
True

0 commit comments

Comments
 (0)