MCPcopy Index your code
hub / github.com/grantjenks/python-sortedcontainers / _fromset

Method _fromset

sortedcontainers/sortedset.py:172–181  ·  view source on GitHub ↗

Initialize sorted set from existing set. Used internally by set operations that return a new set.

(cls, values, key=None)

Source from the content-addressed store, hash-verified

170
171 @classmethod
172 def _fromset(cls, values, key=None):
173 """Initialize sorted set from existing set.
174
175 Used internally by set operations that return a new set.
176
177 """
178 sorted_set = object.__new__(cls)
179 sorted_set._set = values
180 sorted_set.__init__(key=key)
181 return sorted_set
182
183
184 @property

Callers 4

copyMethod · 0.95
differenceMethod · 0.95
intersectionMethod · 0.95
symmetric_differenceMethod · 0.95

Calls 2

__new__Method · 0.45
__init__Method · 0.45

Tested by

no test coverage detected