Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/s/y/sympy-0.7.5/sympy/matrices/dense.py   sympy(Download)
from sympy.utilities.decorator import doctest_depends_on
 
from sympy.matrices.matrices import (MatrixBase,
    ShapeError, a2idx, classof)
 
            if isinstance(key, slice):
                return self._mat[key]
            return self._mat[a2idx(key)]
 
    def __setitem__(self, key, value):

src/s/y/sympy-HEAD/sympy/matrices/dense.py   sympy(Download)
from sympy.utilities.decorator import doctest_depends_on
 
from sympy.matrices.matrices import (MatrixBase,
    ShapeError, a2idx, classof)
 
            if type(key) is slice:
                return self._mat[key]
            return self._mat[a2idx(key)]
 
    def __setitem__(self, key, value):