MCPcopy Create free account
hub / github.com/ipython/ipython / group

Method group

IPython/lib/pretty.py:169–175  ·  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

167
168 @contextmanager
169 def group(self, indent=0, open='', close=''):
170 """like begin_group / end_group but for the with statement."""
171 self.begin_group(indent, open)
172 try:
173 yield
174 finally:
175 self.end_group(indent, close)
176
177class PrettyPrinter(_PrettyPrinterBase):
178 """

Callers 15

strip_email_quotesFunction · 0.80
parseMethod · 0.80
findsourceFunction · 0.80
extract_hist_rangesFunction · 0.80
leading_indentFunction · 0.80
transformMethod · 0.80
find_last_indentFunction · 0.80
attr_matchesMethod · 0.80
match_dict_keysFunction · 0.80
help_endFunction · 0.80
leading_indentFunction · 0.80
assign_from_systemFunction · 0.80

Calls 2

begin_groupMethod · 0.80
end_groupMethod · 0.80

Tested by 4

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