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

All Samples(62)  |  Call(62)  |  Derive(0)  |  Import(0)
x.__getslice__(i, j) <==> x[i:j]

Use of negative indices is not supported.

src/o/r/Orange-2.7.2/Orange/OrangeWidgets/OWGUI.py   Orange(Download)
    def __setslice__(self, start, end, slice):
        for i in list.__getslice__(self, start, end):
            self.listBox.item(i).setSelected(0)
        for i in slice:
            self.listBox.item(i).setSelected(1)
                self.listBox.item(i).setSelected(0)
        else:
            for i in list.__getslice__(self, start, end):
                self.listBox.item(i).setSelected(0)
        list.__delslice__(self, start, end)

src/c/o/ConceptBro-HEAD/Widgets/OWGUI.py   ConceptBro(Download)
    def __setslice__(self, start, end, slice):
        for i in list.__getslice__(self, start, end):
            self.listBox.item(i).setSelected(0)
        for i in slice:
            self.listBox.item(i).setSelected(1)
                self.listBox.item(i).setSelected(0)
        else:
            for i in list.__getslice__(self, start, end):
                self.listBox.item(i).setSelected(0)
        list.__delslice__(self, start, end)

src/e/v/everest-1.0b2dev/everest/utils.py   everest(Download)
    def __getslice__(self, start, stop):
        return [item() for item in list.__getslice__(self, start, stop) ]
 
    def __contains__(self, value):
        return list.__contains__(self, self.__get_weakref(value))

src/p/y/pycollada-0.4/collada/util.py   pycollada(Download)
    def __getslice__(self, i, j):
        return IndexedList(list.__getslice__(self, i, j), self._attrs)
 
    def __setitem__(self, ind, new_obj):
        try:

src/p/y/pycollada-HEAD/collada/util.py   pycollada(Download)
    def __getslice__(self, i, j):
        return IndexedList(list.__getslice__(self, i, j), self._attrs)
 
    def __setitem__(self, ind, new_obj):
        try:

src/e/v/everest-HEAD/everest/utils.py   everest(Download)
    def __getslice__(self, start, stop):
        return [item() for item in list.__getslice__(self, start, stop) ]
 
    def __contains__(self, value):
        return list.__contains__(self, self.__get_weakref(value))

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/share/extensions/serial/serialutil.py   Spherebot-Host-GUI(Download)
        def __getslice__(self, i, j):
            return bytearray(list.__getslice__(self, i, j))
 
        def __getitem__(self, item):
            if isinstance(item, slice):

src/p/y/py2neo-1.6.4/py2neo/packages/urimagic/kvlist.py   py2neo(Download)
        """
        try:
            return KeyValueList(list.__getslice__(self, start, end))
        except AttributeError:
            return KeyValueList(list.__getitem__(self, slice(start, end)))

src/c/h/chemshapes-HEAD/host/snippets for reference/pyRepRap/serial/serialutil.py   chemshapes(Download)
        def __getslice__(self, i, j):
            return bytearray(list.__getslice__(self, i, j))
 
        def __getitem__(self, item):
            if isinstance(item, slice):

src/c/h/chemshapes-HEAD/host/reprap/serial/serialutil.py   chemshapes(Download)
        def __getslice__(self, i, j):
            return bytearray(list.__getslice__(self, i, j))
 
        def __getitem__(self, item):
            if isinstance(item, slice):

  1 | 2 | 3 | 4 | 5 | 6  Next