PageRenderTime 442ms queryFilters 0ms Sphinxql 137ms GetByIds 222ms meta 0ms repositoryFilters 0ms languageFilters 0ms sourceFilters 1ms

1,556 results for 'rpython repo:pypy/pypy' (442 ms)



Repository | Python | 379 lines
4from pypy.interpreter.gateway import interp2app, unwrap_spec
5from rpython.rlib import rmmap, rarithmetic
6from rpython.rlib.buffer import Buffer
6from rpython.rlib.buffer import Buffer
7from rpython.rlib.rmmap import RValueError, RTypeError, RMMapError
8from rpython.rlib.rstring import StringBuilder | Python | 258 lines
1from rpython.rtyper.tool import rffi_platform as platform
2from rpython.rtyper.lltypesystem import rffi, lltype
4from pypy.interpreter.gateway import unwrap_spec, WrappedDefault
5from rpython.rlib import rposix
6from rpython.translator.tool.cbuild import ExternalCompilationInfo | Python | 651 lines
4import errno
5from rpython.rlib import streamio
6from rpython.rlib.objectmodel import specialize
6from rpython.rlib.objectmodel import specialize
7from rpython.rlib.rarithmetic import r_longlong
8from rpython.rlib.rstring import StringBuilder | Python | 242 lines
1from __future__ import with_statement
2from rpython.rlib.rfloat import copysign, isnan, isinf
3from pypy.module.cmath import interp_cmath
7def test_special_values():
8    from rpython.rlib.special_value import sqrt_special_values
9    assert len(sqrt_special_values) == 7
187    import rpython
188    # too fragile...
188    # too fragile...
189    fname = os.path.join(os.path.dirname(rpython.rlib.__file__), 'test', 'rcomplex_testcases.txt')
190    for id, fn, ar, ai, er, ei, flags in parse_testfile(fname): | Python | 419 lines
8from pypy.module.zlib.interp_zlib import zlib_error
9from rpython.rlib.unroll import unrolling_iterable
10from rpython.rlib.rzipfile import RZipFile, BadZipfile
10from rpython.rlib.rzipfile import RZipFile, BadZipfile
11from rpython.rlib.rzlib import RZlibError
12import os
169            #     in order to compare timestamps of .py and .pyc files
170            # we need time.mktime support on rpython level
171            all = [w(t[0]), w(t[1]), w(t[2]), w(t[3]), w(t[4]), | Python | 562 lines
10from pypy.interpreter.typedef import TypeDef
11from rpython.rlib import jit, rarithmetic
12from rpython.rlib.objectmodel import specialize
12from rpython.rlib.objectmodel import specialize
13from rpython.rlib.rarithmetic import r_uint, intmask
14from rpython.rlib.rbigint import rbigint | Python | 376 lines
6from pypy.interpreter.executioncontext import AsyncAction, report_error
7from rpython.rlib import jit, rgc
8from rpython.rlib.rshrinklist import AbstractShrinkList
8from rpython.rlib.rshrinklist import AbstractShrinkList
9from rpython.rlib.objectmodel import specialize
10from rpython.rlib.rweakref import dead_ref | Python | 109 lines
1from pypy import pypydir
2from rpython.tool.udir import udir
3import py
77    def test_csetupterm(self):
78        from rpython.translator.c.test.test_genc import compile
79        from pypy.module._minimal_curses import interp_curses
86    def test_ctgetstr(self):
87        from rpython.translator.c.test.test_genc import compile
88        from pypy.module._minimal_curses import interp_curses
97    def test_ctparm(self):
98        from rpython.translator.c.test.test_genc import compile
99        from pypy.module._minimal_curses import interp_curses | Python | 148 lines
1from rpython.rlib import jit
2from rpython.rlib.buffer import SubBuffer
2from rpython.rlib.buffer import SubBuffer
3from rpython.rlib.rstruct.error import StructError, StructOverflowError
4from rpython.rlib.rstruct.formatiterator import CalcSizeFormatIterator | Python | 216 lines
1from pypy.tool.pairtype import pairtype
2from pypy.rpython.error import TyperError
3from pypy.rpython.lltypesystem.lltype import Signed, Void, Ptr
3from pypy.rpython.lltypesystem.lltype import Signed, Void, Ptr
4from pypy.rpython.rmodel import Repr, IntegerRepr, IteratorRepr
5from pypy.objspace.flow.model import Constant
5from pypy.objspace.flow.model import Constant
6from pypy.rpython.rlist import dum_nocheck, dum_checkidx
7 | Python | 837 lines
6import py
7from pypy.rpython.lltypesystem import lltype
8from pypy.rpython.lltypesystem import rffi
8from pypy.rpython.lltypesystem import rffi
9from pypy.rpython.lltypesystem import llmemory
10from pypy.tool.gcc_cache import build_executable_cache, try_compile_cache
391    def build_result(self, info, config_result):
392        return expose_value_as_rpython(info['value'])
417        if info["defined"]:
418            return expose_value_as_rpython(info['value'])
419        return None
666def expose_value_as_rpython(value):
667    if intmask(value) == value: | Python | 228 lines
5from pypy.rlib.rfloat import isinf, isnan
6from pypy.rpython.lltypesystem.lltype import *
7from pypy.rpython.lltypesystem import rffi, llgroup
7from pypy.rpython.lltypesystem import rffi, llgroup
8from pypy.rpython.lltypesystem.llmemory import Address, \
9     AddressOffset, ItemOffset, ArrayItemsOffset, FieldOffset, \
11     GCHeaderOffset, GCREF, AddressAsInt
12from pypy.rpython.lltypesystem.llarena import RoundedUpForAllocation
13from import cdecl, barebonearray | Python | 311 lines
44    """
45    Lookup a field which ends with ``suffix`` following the rpython struct
46    inheritance hierarchy (i.e., looking both at ``val`` and
57    """
58    Prints the RPython type of the expression.
59    E.g.:
133        import zlib
134        vname = 'pypy_g_rpython_memory_gctypelayout_GCData.gcd_inst_typeids_z'
135        length = int(self.gdb.parse_and_eval('*(long*)%s' % vname))
207    """
208    Pretty printer for rpython strings.
248    """
249    Pretty printer for rpython lists
250 | Python | 228 lines
5from rpython.config.config import ChoiceOption, BoolOption, StrOption, IntOption
6from rpython.config.config import FloatOption, OptionDescription, Option, Config
6from rpython.config.config import FloatOption, OptionDescription, Option, Config
7from rpython.config.config import ArbitraryOption, DEFAULT_OPTION_NAME
8from rpython.config.config import _getnegation
stackless.rst | Unknown | 413 lines
28to add a short page of custom assembler to
274Continulets are internally implemented using stacklets, which is the
275generic RPython-level building block for "one-shot continuations".  For
276more information about them please see the documentation in the C source
276more information about them please see the documentation in the C source
277at :source:`rpython/translator/c/src/stacklet/stacklet.h`.
279The module ``rpython.rlib.rstacklet`` is a thin wrapper around the above
280functions.  The key point is that new() and switch() always return a
faq.rst | Unknown | 400 lines
6See also: `Frequently ask questions about RPython.`__
8.. __:
16PyPy is a reimplementation of Python in Python, using the RPython translation
138Cross-translation is only explicitly supported between a 32-bit Intel
139Linux and ARM Linux (see :ref:`here <rpython:arm>`).
196You might be interested in our `benchmarking site`_ and our
197:ref:`jit documentation <rpython:jit>`.
198 | Python | 785 lines
12import py
13log = py.log.Producer("annrpython")
14py.log.setconsumer("annrpython", ansi_log)
19class RPythonAnnotator(object):
20    """Block annotator for RPython.
23    def __init__(self, translator=None, policy=None, bookkeeper=None):
24        import pypy.rpython.ootypesystem.ooregistry # has side effects
25        import pypy.rpython.extfuncregistry # has side effects
462        # The dict 'added_blocks' is used by rpython.annlowlevel to
463        # detect which are the new blocks that annotating an additional
761# register simple operations handling
763 | Python | 800 lines
499    """Stands for an object of 'external' type.  External types have a Repr
500    controlled by pypy.rpython.extregistry."""
536from pypy.rpython.lltypesystem import llmemory
561from pypy.rpython.lltypesystem import lltype
562from pypy.rpython.ootypesystem import ootype | Python | 585 lines
1import py
2from pypy.rpython.lltypesystem import lltype, llmemory, rffi, rstr, rclass
3from pypy.rpython.annlowlevel import llhelper
79        py.test.skip("rewrite or kill")
80        from pypy.rpython.lltypesystem import rstr
125    def test_stringitems(self):
126        from pypy.rpython.lltypesystem.rstr import STR
127        ofs = symbolic.get_field_token(STR, 'chars', False)[0] | Python | 3,185 lines
13from pypy.jit.tool.oparser import parse
14from pypy.rpython.lltypesystem import lltype, llmemory, rstr, rffi, rclass
15from pypy.rpython.ootypesystem import ootype
15from pypy.rpython.ootypesystem import ootype
16from pypy.rpython.annlowlevel import llhelper
17from pypy.rpython.llinterp import LLException
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21