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

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/n/e/neo4jrestclient-2.0.2/neo4jrestclient/iterable.py   neo4jrestclient(Download)
    def __getslice__(self, *args, **kwargs):
        eltos = super(Iterable, self).__getslice__(*args, **kwargs)
        if self._attribute:
            return [self._class(elto[self._attribute], update_dict=elto,
                                auth=self._auth, cypher=self._cypher)
                    for elto in eltos]
        else:
            return [self._class(elto, auth=self._auth, cypher=self._cypher)
    def __getitem__(self, index):
        elto = super(Iterable, self).__getitem__(index)
        if self._attribute:
            return self._class(elto[self._attribute], update_dict=elto,
                               auth=self._auth, cypher=self._cypher)
        else:
            return self._class(elto, auth=self._auth, cypher=self._cypher)

src/n/e/neo4j-rest-client-HEAD/neo4jrestclient/iterable.py   neo4j-rest-client(Download)
    def __getslice__(self, *args, **kwargs):
        eltos = super(Iterable, self).__getslice__(*args, **kwargs)
        if self._attribute:
            return [self._class(elto[self._attribute], update_dict=elto,
                                auth=self._auth, cypher=self._cypher)
                    for elto in eltos]
        else:
            return [self._class(elto, auth=self._auth, cypher=self._cypher)
    def __getitem__(self, index):
        elto = super(Iterable, self).__getitem__(index)
        if self._attribute:
            return self._class(elto[self._attribute], update_dict=elto,
                               auth=self._auth, cypher=self._cypher)
        else:
            return self._class(elto, auth=self._auth, cypher=self._cypher)