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

Method output

IPython/lib/pretty.py:452–461  ·  view source on GitHub ↗
(self, stream, output_width)

Source from the content-addressed store, hash-verified

450 self.group.breakables.append(self)
451
452 def output(self, stream, output_width):
453 self.group.breakables.popleft()
454 if self.group.want_break:
455 stream.write(self.pretty.newline)
456 stream.write(' ' * self.indentation)
457 return self.indentation
458 if not self.group.breakables:
459 self.pretty.group_queue.remove(self.group)
460 stream.write(self.obj)
461 return output_width + self.width
462
463
464class Group(Printable):

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected