Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(12) | Call(12) | Derive(0) | Import(0)
src/g/i/github-badge-HEAD/packages/pyresto/core.py github-badge(Download)
if should_wrap: item = ([self.__wrapper(_) for _ in item] if isinstance(key, slice) else self.__wrapper(item))
def __getslice__(self, i, j): # We need this implementation for backwards compatibility. items = super(self.__class__, self).__getslice__(i, j) if any(isinstance(it, dict) for it in items): items = [self.__wrapper(_) for _ in items]
def __iter__(self): # Call the base __iter__ to avoid infinite recursion and then simply # return an iterator. iterator = super(self.__class__, self).__iter__() return (self.__wrapper(item) for item in iterator)
src/p/y/pyresto-0.3/pyresto/core.py pyresto(Download)
if should_wrap: item = ([self.__wrapper(_) for _ in item] if isinstance(key, slice) else self.__wrapper(item))
def __getslice__(self, i, j): # We need this implementation for backwards compatibility. items = super(self.__class__, self).__getslice__(i, j) if any(isinstance(it, dict) for it in items): items = [self.__wrapper(_) for _ in items]
def __iter__(self): # Call the base __iter__ to avoid inifnite recursion and then simply # return an iterator. iterator = super(self.__class__, self).__iter__() return (self.__wrapper(item) for item in iterator)
src/p/y/pyresto-HEAD/pyresto/core.py pyresto(Download)
if should_wrap: item = ([self.__wrapper(_) for _ in item] if isinstance(key, slice) else self.__wrapper(item))
def __getslice__(self, i, j): # We need this implementation for backwards compatibility. items = super(self.__class__, self).__getslice__(i, j) if any(isinstance(it, dict) for it in items): items = [self.__wrapper(_) for _ in items]
def __iter__(self): # Call the base __iter__ to avoid infinite recursion and then simply # return an iterator. iterator = super(self.__class__, self).__iter__() return (self.__wrapper(item) for item in iterator)