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

Method break_

IPython/lib/pretty.py:268–279  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

266 self._break_outer_groups()
267
268 def break_(self):
269 """
270 Explicitly insert a newline into the output, maintaining correct indentation.
271 """
272 group = self.group_queue.deq()
273 if group:
274 self._break_one_group(group)
275 self.flush()
276 self.output.write(self.newline)
277 self.output.write(' ' * self.indentation)
278 self.output_width = self.indentation
279 self.buffer_width = 0
280
281
282 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