def __getitem__(self, key):
        """Return specified page(s)."""
        getitem = self._getitem
        if isinstance(key, inttypes):
            return getitem(key)
        if isinstance(key, slice):
            return [getitem(i) for i in range(*key.indices(self._len))]
        if isinstance(key, Iterable):
            return [getitem(k) for k in key]
        raise TypeError('key must be an integer, slice, or iterable')
def __getitem__ ( self , key ) : getitem = self . _getitem if isinstance ( key , inttypes ) : return getitem ( key ) if isinstance ( key , slice ) : return [ getitem ( i ) for i in range ( * key . indices ( self . _len ) ) ] if isinstance ( key , Iterable ) : return [ getitem ( k ) for k in key ] raise TypeError ( 'key must be an integer, slice, or iterable' )
Return specified page(s).