Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b48dbbb

Browse files
007vedantCarreau
authored andcommitted
Updated _userlist_print with obj.data for optimization
1 parent 43c7193 commit b48dbbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

IPython/lib/pretty.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ def _userlist_pprint(obj, p, cycle):
926926
if cycle:
927927
p.pretty(cls_ctor(RawText("...")))
928928
else:
929-
p.pretty(cls_ctor(list(obj)))
929+
p.pretty(cls_ctor(obj.data))
930930

931931

932932
for_type_by_name('collections', 'defaultdict', _defaultdict_pprint)

0 commit comments

Comments
 (0)