HomogeneousList¶
-
class
astropy.utils.collections.HomogeneousList(types, values=[])[source] [edit on github]¶ Bases:
listA subclass of list that contains only elements of a given type or types. If an item that is not of the specified type is added to the list, a
TypeErroris raised.Parameters: types : sequence of types
The types to accept.
values : sequence, optional
An initial set of values.
Methods Summary
append(object)extend(iterable)insert(i, x)L.insert(index, object) – insert object before index Methods Documentation
-
append(object) → None -- append object to end[source] [edit on github]¶
-
extend(iterable) → None -- extend list by appending elements from the iterable[source] [edit on github]¶
-
insert(i, x)[source] [edit on github]¶ L.insert(index, object) – insert object before index
-