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

Method break_

IPython/lib/pretty.py:250–261  ·  view source on GitHub ↗

Explicitly insert a newline into the output, maintaining correct indentation.

(self)

Source from the content-addressed store, hash-verified

248 self._break_outer_groups()
249
250 def break_(self):
251 """
252 Explicitly insert a newline into the output, maintaining correct indentation.
253 """
254 group = self.group_queue.deq()
255 if group:
256 self._break_one_group(group)
257 self.flush()
258 self.output.write(self.newline)
259 self.output.write(' ' * self.indentation)
260 self.output_width = self.indentation
261 self.buffer_width = 0
262
263
264 def begin_group(self, indent=0, open=''):

Callers 2

_repr_pprintFunction · 0.80
_repr_pretty_Method · 0.80

Calls 4

_break_one_groupMethod · 0.95
flushMethod · 0.95
deqMethod · 0.80
writeMethod · 0.45

Tested by 1

_repr_pretty_Method · 0.64