Show More
@@ -219,16 +219,14 b' class baseset(abstractsmartset):' | |||||
219 | """ |
|
219 | """ | |
220 | self._ascending = None |
|
220 | self._ascending = None | |
221 | self._istopo = istopo |
|
221 | self._istopo = istopo | |
222 |
if |
|
222 | if isinstance(data, set): | |
223 | if isinstance(data, set): |
|
223 | # converting set to list has a cost, do it lazily | |
224 |
|
|
224 | self._set = data | |
225 |
|
|
225 | # set has no order we pick one for stability purpose | |
226 |
|
|
226 | self._ascending = True | |
227 | # converting set to list has a cost, do it lazily |
|
227 | else: | |
228 | data = None |
|
228 | if not isinstance(data, list): | |
229 | else: |
|
|||
230 | data = list(data) |
|
229 | data = list(data) | |
231 | if data is not None: |
|
|||
232 | self._list = data |
|
230 | self._list = data | |
233 | self._datarepr = datarepr |
|
231 | self._datarepr = datarepr | |
234 |
|
232 |
General Comments 0
You need to be logged in to leave comments.
Login now