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

Method begin_group

IPython/lib/pretty.py:282–294  ·  view source on GitHub ↗

Begin a group. The first parameter specifies the indentation for the next line (usually the width of the opening text), the second the opening text. All parameters are optional.

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

Source from the content-addressed store, hash-verified

280
281
282 def begin_group(self, indent=0, open=''):
283 """
284 Begin a group.
285 The first parameter specifies the indentation for the next line (usually
286 the width of the opening text), the second the opening text. All
287 parameters are optional.
288 """
289 if open:
290 self.text(open)
291 group = Group(self.group_stack[-1].depth + 1)
292 self.group_stack.append(group)
293 self.group_queue.enq(group)
294 self.indentation += indent
295
296 def _enumerate(self, seq):
297 """like enumerate, but with an upper limit on the number of items"""

Callers 5

groupMethod · 0.80
prettyMethod · 0.80
_default_pprintFunction · 0.80
innerFunction · 0.80
_super_pprintFunction · 0.80

Calls 3

textMethod · 0.95
GroupClass · 0.85
enqMethod · 0.80

Tested by

no test coverage detected