HomogeneousList

class astropy.utils.collections.HomogeneousList(types, values=[]) [edit on github][source]

Bases: list

A 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 TypeError is raised.

Methods Summary

insert(i, x)
extend(x)
append(x)

Methods Documentation

insert(i, x) [edit on github][source]
extend(x) [edit on github][source]
append(x) [edit on github][source]

Page Contents