From 3ed989c829cb57c1aa714406df0ffe69483605a0 2013-04-10 20:02:17 From: MinRK Date: 2013-04-10 20:02:17 Subject: [PATCH] use Python 3-style for pretty-printed sets Sets are now `{1,2,3}` instead of `set([1,2,3])`, matching repr(set) on Python 3. This change applies to all Python versions. closes #3156 --- diff --git a/IPython/lib/pretty.py b/IPython/lib/pretty.py index d5f71c9..bc50114 100644 --- a/IPython/lib/pretty.py +++ b/IPython/lib/pretty.py @@ -668,7 +668,7 @@ _type_pprinters = { list: _seq_pprinter_factory('[', ']', list), dict: _dict_pprinter_factory('{', '}', dict), - set: _seq_pprinter_factory('set([', '])', set), + set: _seq_pprinter_factory('{', '}', set), frozenset: _seq_pprinter_factory('frozenset([', '])', frozenset), super: _super_pprint, _re_pattern_type: _re_pattern_pprint,