##// END OF EJS Templates
avoid mutable default argument!
Ahmed Fasih -
Show More
@@ -1804,7 +1804,7 b' class InteractiveShell(SingletonConfigurable):'
1804 """Get object info as formatted text"""
1804 """Get object info as formatted text"""
1805 return self.object_inspect_mime(oname, detail_level)['text/plain']
1805 return self.object_inspect_mime(oname, detail_level)['text/plain']
1806
1806
1807 def object_inspect_mime(self, oname, detail_level=0, omit_sections={}):
1807 def object_inspect_mime(self, oname, detail_level=0, omit_sections=()):
1808 """Get object info as a mimebundle of formatted representations.
1808 """Get object info as a mimebundle of formatted representations.
1809
1809
1810 A mimebundle is a dictionary, keyed by mime-type.
1810 A mimebundle is a dictionary, keyed by mime-type.
@@ -567,7 +567,7 b' class Inspector(Colorable):'
567 return bundle
567 return bundle
568
568
569 def _get_info(
569 def _get_info(
570 self, obj, oname="", formatter=None, info=None, detail_level=0, omit_sections={}
570 self, obj, oname="", formatter=None, info=None, detail_level=0, omit_sections=()
571 ):
571 ):
572 """Retrieve an info dict and format it.
572 """Retrieve an info dict and format it.
573
573
@@ -583,8 +583,8 b' class Inspector(Colorable):'
583 already computed information
583 already computed information
584 detail_level: integer
584 detail_level: integer
585 Granularity of detail level, if set to 1, give more information.
585 Granularity of detail level, if set to 1, give more information.
586 omit_sections: set[str]
586 omit_sections: container[str]
587 Titles or keys to omit from output
587 Titles or keys to omit from output (can be set, tuple, etc., anything supporting `in`)
588 """
588 """
589
589
590 info = self._info(obj, oname=oname, info=info, detail_level=detail_level)
590 info = self._info(obj, oname=oname, info=info, detail_level=detail_level)
@@ -669,7 +669,7 b' class Inspector(Colorable):'
669 info=None,
669 info=None,
670 detail_level=0,
670 detail_level=0,
671 enable_html_pager=True,
671 enable_html_pager=True,
672 omit_sections={},
672 omit_sections=(),
673 ):
673 ):
674 """Show detailed information about an object.
674 """Show detailed information about an object.
675
675
General Comments 0
You need to be logged in to leave comments. Login now