MCPcopy Index your code
hub / github.com/ipython/ipython / group

Method group

IPython/lib/pretty.py:187–193  ·  view source on GitHub ↗

like begin_group / end_group but for the with statement.

(self, indent=0, open='', close='')

Source from the content-addressed store, hash-verified

185
186 @contextmanager
187 def group(self, indent=0, open='', close=''):
188 """like begin_group / end_group but for the with statement."""
189 self.begin_group(indent, open)
190 try:
191 yield
192 finally:
193 self.end_group(indent, close)
194
195class PrettyPrinter(_PrettyPrinterBase):
196 """

Callers 15

parseMethod · 0.80
raw_string_parenthesisFunction · 0.80
raw_string_bracketFunction · 0.80
raw_string_bracesFunction · 0.80
extract_hist_rangesFunction · 0.80
_triple_quote_maskMethod · 0.80
transformMethod · 0.80
find_last_indentFunction · 0.80
_attr_matchesMethod · 0.80
match_dict_keysFunction · 0.80
module_listFunction · 0.80
__init__Method · 0.80

Calls 2

begin_groupMethod · 0.80
end_groupMethod · 0.80

Tested by 5

parseMethod · 0.64
_parse_exampleMethod · 0.64
_repr_pretty_Method · 0.64
_repr_pretty_Method · 0.64