MCPcopy Create free account
hub / github.com/scanny/python-pptx / from_ordered_sequence

Method from_ordered_sequence

src/pptx/text/layout.py:145–154  ·  view source on GitHub ↗

Return the root of a balanced binary search tree populated with the values in iterable *iseq*.

(cls, iseq)

Source from the content-addressed store, hash-verified

143
144 @classmethod
145 def from_ordered_sequence(cls, iseq):
146 """
147 Return the root of a balanced binary search tree populated with the
148 values in iterable *iseq*.
149 """
150 seq = list(iseq)
151 # optimize for usually all fits by making longest first
152 bst = cls(seq.pop())
153 bst._insert_from_ordered_sequence(seq)
154 return bst
155
156 def insert(self, value):
157 """

Callers 4

_best_fit_font_sizeMethod · 0.80
_break_lineMethod · 0.80
max_fixtureMethod · 0.80

Calls 2

popMethod · 0.80

Tested by 2

max_fixtureMethod · 0.64