Did I find the right examples for you? yes no

All Samples(20)  |  Call(15)  |  Derive(2)  |  Import(3)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/annotation/unaryop.py   plexnet(Download)
 
from types import MethodType
from pypy.annotation.model import \
     SomeObject, SomeInteger, SomeBool, SomeString, SomeChar, SomeList, \
     SomeDict, SomeTuple, SomeImpossibleValue, \
    def iter(tup):
        getbookkeeper().count("tuple_iter", tup)
        return SomeIterator(tup)
    iter.can_only_throw = []
 
    def iter(lst):
        return SomeIterator(lst)
    iter.can_only_throw = []
 
    def getanyitem(lst):
    def iter(dct):
        return SomeIterator(dct)
    iter.can_only_throw = []
 
    def getanyitem(dct, variant='keys'):
    def method_iterkeys(dct):
        return SomeIterator(dct, 'keys')
 
    def method_itervalues(dct):
        return SomeIterator(dct, 'values')

src/s/y/Sypy-HEAD/annotation/unaryop.py   Sypy(Download)
 
from types import MethodType
from pypy.annotation.model import \
     SomeObject, SomeInteger, SomeBool, SomeString, SomeChar, SomeList, \
     SomeDict, SomeTuple, SomeImpossibleValue, SomeUnicodeCodePoint, \
    def iter(tup):
        getbookkeeper().count("tuple_iter", tup)
        return SomeIterator(tup)
    iter.can_only_throw = []
 
    def iter(lst):
        return SomeIterator(lst)
    iter.can_only_throw = []
 
    def getanyitem(lst):
    def iter(dct):
        return SomeIterator(dct)
    iter.can_only_throw = []
 
    def getanyitem(dct, variant='keys'):
    def method_iterkeys(dct):
        return SomeIterator(dct, 'keys')
 
    def method_itervalues(dct):
        return SomeIterator(dct, 'values')

src/s/y/Sypy-HEAD/annotation/builtin.py   Sypy(Download)
from pypy.annotation.model import SomeFloat, unionof, SomeUnicodeString
from pypy.annotation.model import SomePBC, SomeInstance, SomeDict, SomeList
from pypy.annotation.model import SomeWeakRef, SomeIterator
from pypy.annotation.model import SomeOOObject
from pypy.annotation.model import annotation_to_lltype, lltype_to_annotation, ll_to_annotation
def builtin_enumerate(s_obj):
    return SomeIterator(s_obj, "enumerate")
 
def builtin_bool(s_obj):
    return s_obj.is_true()