Did I find the right examples for you? yes no

All Samples(84)  |  Call(59)  |  Derive(4)  |  Import(21)

src/s/y/Sypy-HEAD/annotation/bookkeeper.py   Sypy(Download)
 
from pypy.objspace.flow.model import Constant
from pypy.annotation.model import SomeString, SomeChar, SomeFloat, \
     SomePtr, unionof, SomeInstance, SomeDict, SomeBuiltin, SomePBC, \
     SomeInteger, SomeOOInstance, SomeOOObject, TLS, SomeAddress, \
                result = SomeChar(no_nul=no_nul)
            else:
                result = SomeString(no_nul=no_nul)
        elif tp is unicode:
            if len(x) == 1:

src/s/y/Sypy-HEAD/rpython/module/ll_os.py   Sypy(Download)
    BaseLazyRegistering, register_external)
from pypy.rpython.extfunc import registering, registering_if, extdef
from pypy.annotation.model import (
    SomeInteger, SomeString, SomeTuple, SomeFloat, SomeUnicodeString)
from pypy.annotation.model import s_ImpossibleValue, s_None, s_Bool
from pypy.rlib.objectmodel import specialize
 
str0 = SomeString(no_nul=True)
unicode0 = SomeUnicodeString(no_nul=True)
 
            return OOSupport.to_rstr(os.read(fd, count))
 
        return extdef([int, int], SomeString(can_be_None=True),
                      "ll_os.ll_os_read",
                      llimpl=os_read_llimpl, oofakeimpl=os_read_oofakeimpl)

src/s/y/Sypy-HEAD/annotation/listdef.py   Sypy(Download)
from pypy.annotation.model import SomeObject, s_ImpossibleValue
from pypy.annotation.model import SomeList, SomeString
from pypy.annotation.model import unionof, TLS, UnionError, isdegenerated
 
 
MOST_GENERAL_LISTDEF = ListDef(None, SomeObject())
 
s_list_of_strings = SomeList(ListDef(None, SomeString(no_nul=True),
                                     resized = True))
 

src/s/y/Sypy-HEAD/rpython/annlowlevel.py   Sypy(Download)
        def compute_result_annotation(self, s_ll_str):
            if strtype is str:
                return annmodel.SomeString(can_be_None=True)
            else:
                return annmodel.SomeUnicodeString(can_be_None=True)

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 str(obj):
        getbookkeeper().count('str', obj)
        return SomeString()
 
    def unicode(obj):
    def repr(obj):
        getbookkeeper().count('repr', obj)
        return SomeString()
 
    def hex(obj):
        getbookkeeper().count('hex', obj)
        return SomeString()
    def oct(obj):
        getbookkeeper().count('oct', obj)
        return SomeString()
 
    def id(obj):

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/module/ll_os_environ.py   plexnet(Download)
    return result
 
register_external(r_getenv, [str], annmodel.SomeString(can_be_None=True),
                  export_name='ll_os.ll_os_getenv',
                  llimpl=getenv_llimpl)

src/s/y/Sypy-HEAD/rpython/module/ll_strtod.py   Sypy(Download)
from pypy.translator.tool.cbuild import ExternalCompilationInfo
from pypy.tool.autopath import pypydir
from pypy.annotation.model import SomeString
 
class CConfig:
 
        return extdef([float, lltype.Char, int, int],
                      SomeString(can_be_None=True),
                      'll_strtod.ll_strtod_formatd',
                      llimpl=llimpl, oofakeimpl=oofakeimpl,
                                         afterpt._str, exponent._str)
 
        tp = SomeString(can_be_None=True)
        return extdef([tp, tp, tp, tp], float,
                      'll_strtod.ll_strtod_parts_to_float', llimpl=llimpl,

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 str(obj):
        getbookkeeper().count('str', obj)
        return SomeString()
 
    def unicode(obj):
    def repr(obj):
        getbookkeeper().count('repr', obj)
        return SomeString()
 
    def hex(obj):
        getbookkeeper().count('hex', obj)
        return SomeString()
    def oct(obj):
        getbookkeeper().count('oct', obj)
        return SomeString()
 
    def id(obj):

src/s/y/Sypy-HEAD/rlib/rfloat.py   Sypy(Download)
"""Float constants"""
 
import math
 
from pypy.annotation.model import SomeString
    return ootype.ooparse_float(lls)
 
register_external(rstring_to_float, [SomeString(can_be_None=False)], float,
                  llimpl=rstring_to_float_impl,
                  ooimpl=oo_rstring_to_float,

src/s/y/Sypy-HEAD/rpython/module/ll_os_environ.py   Sypy(Download)
    return result
 
register_external(r_getenv, [str0], annmodel.SomeString(can_be_None=True),
                  export_name='ll_os.ll_os_getenv',
                  llimpl=getenv_llimpl)

  1 | 2 | 3 | 4  Next