PageRenderTime 188ms queryTime 19ms sortTime 7ms getByIdsTime 54ms findMatchingLines 13ms

100+ results results for 'rpython repo:pypy/pypy' (188 ms)

Not the results you expected?
lldict.py https://bitbucket.org/pypy/pypy/ | Python | 101 lines
                    
1from pypy.rpython.lltypesystem import lltype, llmemory
                    
2from pypy.rpython.lltypesystem import rdict
                    
3from pypy.rlib.objectmodel import we_are_translated
                    
4from pypy.rpython.memory.support import mangle_hash
                    
5
                    
11def count_alloc(delta):
                    
12    "NOT_RPYTHON"
                    
13    global alloc_count
                    
                
eric4.Preferences.ConfigurationPages.DebuggerPythonPage.html git://pkgs.fedoraproject.org/eric | HTML | 117 lines
                    
33<tr>
                    
34<td><a href="#DebuggerPythonPage">DebuggerPythonPage</a></td>
                    
35<td>Class implementing the Debugger Python configuration page.</td>
                    
45<hr /><hr />
                    
46<a NAME="DebuggerPythonPage" ID="DebuggerPythonPage"></a>
                    
47<h2>DebuggerPythonPage</h2>
                    
80</table>
                    
81<a NAME="DebuggerPythonPage.__init__" ID="DebuggerPythonPage.__init__"></a>
                    
82<h4>DebuggerPythonPage (Constructor)</h4>
                    
90        Private slot to handle the Debug Client selection.
                    
91</p><a NAME="DebuggerPythonPage.on_interpreterButton_clicked" ID="DebuggerPythonPage.on_interpreterButton_clicked"></a>
                    
92<h4>DebuggerPythonPage.on_interpreterButton_clicked</h4>
                    
95        Private slot to handle the Python interpreter selection.
                    
96</p><a NAME="DebuggerPythonPage.save" ID="DebuggerPythonPage.save"></a>
                    
97<h4>DebuggerPythonPage.save</h4>
                    
                
lldict.py https://bitbucket.org/pypy/pypy/ | Python | 101 lines
                    
1from rpython.rtyper.lltypesystem import lltype, llmemory
                    
2from rpython.rtyper.lltypesystem import rdict
                    
2from rpython.rtyper.lltypesystem import rdict
                    
3from rpython.rlib.objectmodel import we_are_translated
                    
4from rpython.memory.support import mangle_hash
                    
11def count_alloc(delta):
                    
12    "NOT_RPYTHON"
                    
13    global alloc_count
                    
                
callbuilder.py https://bitbucket.org/pypy/pypy/ | Python | 105 lines
                    
1from rpython.rlib.clibffi import FFI_DEFAULT_ABI
                    
2from rpython.rlib import rgil
                    
2from rpython.rlib import rgil
                    
3from rpython.rtyper.lltypesystem import lltype, rffi
                    
4
                    
                
test_simplify.py https://bitbucket.org/pypy/pypy/ | Python | 449 lines
                    
173                assert graph is not None
                    
174    # an external function in RPython turns currently into
                    
175    # a call to a wrapper function which itself contains the
                    
204def test_join_blocks_cleans_links():
                    
205    from pypy.rpython.lltypesystem import lltype
                    
206    from pypy.objspace.flow.model import Constant
                    
222def test_transform_dead_op_vars_bug():
                    
223    from pypy.rpython.llinterp import LLInterpreter, LLException
                    
224    exc = ValueError()
                    
332    def specialize(self, func, argtypes):
                    
333        from pypy.rpython.llinterp import LLInterpreter
                    
334        t = TranslationContext(list_comprehension_operations=True)
                    
                
CMakeLists.txt https://bitbucket.org/yorik/freecad.git | CMake | 119 lines
                    
89    TaskDlgEditSketch.h
                    
90    ViewProviderPython.cpp
                    
91    ViewProviderPython.h
                    
                
QsciLexerPython.cs git://pkgs.fedoraproject.org/qyoto | C# | 173 lines
                    
44			CreateProxy();
                    
45			interceptor.Invoke("QsciLexerPython#", "QsciLexerPython(QObject*)", typeof(void), typeof(QObject), parent);
                    
46		}
                    
127		public QsciLexerPython.IndentationWarning indentationWarning() {
                    
128			return (QsciLexerPython.IndentationWarning) interceptor.Invoke("indentationWarning", "indentationWarning() const", typeof(QsciLexerPython.IndentationWarning));
                    
129		}
                    
142		public virtual void SetIndentationWarning(QsciLexerPython.IndentationWarning warn) {
                    
143			interceptor.Invoke("setIndentationWarning$", "setIndentationWarning(QsciLexerPython::IndentationWarning)", typeof(void), typeof(QsciLexerPython.IndentationWarning), warn);
                    
144		}
                    
153		~QsciLexerPython() {
                    
154			interceptor.Invoke("~QsciLexerPython", "~QsciLexerPython()", typeof(void));
                    
155		}
                    
156		public new void Dispose() {
                    
157			interceptor.Invoke("~QsciLexerPython", "~QsciLexerPython()", typeof(void));
                    
158		}
                    
                
test_unicodedata.py https://bitbucket.org/bwesterb/pypy | Python | 78 lines
                    
5
                    
6from rpython.rlib.unicodedata import unicodedb_3_2_0, unicodedb_5_2_0
                    
7
                    
                
interp_win32.py https://bitbucket.org/pypy/pypy/ | Python | 181 lines
                    
1from rpython.rlib import rwin32
                    
2from rpython.rtyper.lltypesystem import rffi, lltype
                    
2from rpython.rtyper.lltypesystem import rffi, lltype
                    
3from rpython.rtyper.tool import rffi_platform
                    
4from rpython.translator.tool.cbuild import ExternalCompilationInfo
                    
6from pypy.interpreter.error import wrap_windowserror
                    
7from rpython.rlib.rarithmetic import intmask
                    
8eci = ExternalCompilationInfo(
                    
                
whatsnew-head.rst https://bitbucket.org/nibrahim/pypy | ReStructuredText | 117 lines
                    
7
                    
8.. branch: split-rpython
                    
9Split rpython and pypy into seperate directories
                    
39.. branch: signatures
                    
40Improved RPython typing
                    
41
                    
41
                    
42.. branch: rpython-bytearray
                    
43Rudimentary support for bytearray in RPython
                    
90.. branch: coding-guide-update-rlib-refs
                    
91.. branch: rlib-doc-rpython-refs
                    
92.. branch: clean-up-remaining-pypy-rlib-refs
                    
                
test_ll_termios.py https://bitbucket.org/cbjadwani/pypy | Python | 106 lines
                    
1import py, re, sys
                    
2from rpython.tool.udir import udir
                    
3from rpython.tool.pytest.expecttest import ExpectTest
                    
35    def test_tcgetattr(self):
                    
36        from rpython.translator.c.test.test_genc import compile
                    
37        from rpython.rlib import rtermios
                    
45    def test_tcgetattr2(self):
                    
46        from rpython.translator.c.test.test_genc import compile
                    
47        from rpython.rlib import rtermios
                    
62        # I've got no idea how to test it to be honest :-(
                    
63        from rpython.translator.c.test.test_genc import compile
                    
64        from rpython.rlib import rtermios
                    
78    def test_tcrest(self):
                    
79        from rpython.translator.c.test.test_genc import compile
                    
80        from rpython.rtyper.module import ll_termios
                    
                
lldict.py https://bitbucket.org/cbjadwani/pypy | Python | 101 lines
                    
1from rpython.rtyper.lltypesystem import lltype, llmemory
                    
2from rpython.rtyper.lltypesystem import rdict
                    
2from rpython.rtyper.lltypesystem import rdict
                    
3from rpython.rlib.objectmodel import we_are_translated
                    
4from rpython.rtyper.memory.support import mangle_hash
                    
11def count_alloc(delta):
                    
12    "NOT_RPYTHON"
                    
13    global alloc_count
                    
                
heap.py https://bitbucket.org/cfbolz/pyrolog/ | Python | 240 lines
                    
1from rpython.rlib import debug
                    
2from prolog.interpreter.term import BindingVar, AttVar
                    
3
                    
4from rpython.rlib import jit
                    
5
                    
                
stdtypedef.py https://bitbucket.org/sonwell/pypy | Python | 298 lines
                    
20    def __init__(self, __name, __base=None, **rawdict):
                    
21        "NOT_RPYTHON: initialization-time only."
                    
22        TypeDef.__init__(self, __name, __base, **rawdict)
                    
26    def registermethods(self, namespace):
                    
27        "NOT_RPYTHON: initialization-time only."
                    
28        self.local_multimethods += hack_out_multimethods(namespace)
                    
55    def build(cache, typedef):
                    
56        "NOT_RPYTHON: initialization-time only."
                    
57        # build a W_TypeObject from this StdTypeDef
                    
103def hack_out_multimethods(ns):
                    
104    "NOT_RPYTHON: initialization-time only."
                    
105    result = []
                    
123def sliced_typeorders(typeorder, multimethod, typedef, i, local=False):
                    
124    """NOT_RPYTHON"""
                    
125    list_of_typeorders = [typeorder] * multimethod.arity
                    
                
__init__.py https://bitbucket.org/pypy/pypy/ | Python | 38 lines
                    
25    def __init__(self, space, *args):
                    
26        "NOT_RPYTHON: patches space.threadlocals to use real threadlocals"
                    
27        from pypy.module.thread import gil
                    
                
storesink.py https://bitbucket.org/halgari/pypy | Python | 98 lines
                    
1
                    
2from rpython.rtyper.lltypesystem.lloperation import llop
                    
3from rpython.flowspace.model import mkentrymap, Variable
                    
3from rpython.flowspace.model import mkentrymap, Variable
                    
4from rpython.translator.backendopt import removenoops
                    
5from rpython.translator import simplify
                    
                
ctypeenum.py https://bitbucket.org/jerith/pypy | Python | 89 lines
                    
5from pypy.interpreter.error import OperationError, operationerrfmt
                    
6from pypy.rpython.lltypesystem import rffi
                    
7from pypy.rlib.rarithmetic import intmask, r_ulonglong
                    
77            try:
                    
78                return int(s[1:])     # xxx is it RPython?
                    
79            except ValueError:
                    
                
frm_setup.cs https://hg.codeplex.com/aor | C# | 192 lines
                    
83
                    
84            CommTYPES ContourPythonCommType=GetCommType(ConfigurationManager.AppSettings["ContourPythonCommType"]);
                    
85            string ContourSecurityKey=ConfigurationManager.AppSettings["ContourSecurityKey"];
                    
89            string ContourExecutable=Path.Combine(rootDir, ConfigurationManager.AppSettings["ContourExecutable"]);
                    
90            string ContourPythonDebugLevel=ConfigurationManager.AppSettings["ContourPythonDebugLevel"];
                    
91
                    
91
                    
92            //RTI_CPythonProxy _fe = new RTI_CPythonProxy("create_random_contour_dict2", aDictionary, ContourPythonCommType, ContourSecurityKey, ContourIronPythonProxyCode, ContourPathToIronPythonLib, ContourPathToCPythonCode, ContourExecutable, ContourPythonDebugLevel);
                    
93            RTI_CPythonProxy _fe = new RTI_CPythonProxy("create_random_contour_dict2", aDictionary, ContourSecurityKey, ContourIronPythonProxyCode, ContourPathToIronPythonLib, ContourPathToCPythonCode, ContourExecutable, ContourPythonDebugLevel);
                    
95            frmProg.fe = _fe;
                    
96            frmProg.RunType = ContourPythonCommType;
                    
97            if (frmProg.ShowDialog(this) == DialogResult.OK)
                    
                
rweaklist.py https://bitbucket.org/pypy/pypy/ | Python | 58 lines
                    
1import weakref
                    
2from rpython.rlib.rweakref import dead_ref
                    
3
                    
12
                    
13    See also rpython.rlib.rshrinklist.
                    
14    """
                    
                
bytesobject.py https://bitbucket.org/pypy/pypy/ | Python | 354 lines
                    
1from pypy.interpreter.error import oefmt
                    
2from rpython.rtyper.lltypesystem import rffi, lltype
                    
3from pypy.module.cpyext.api import (
                    
89    """
                    
90    Copy RPython string object contents to a PyBytesObject. The
                    
91    c_ob_sval must not be modified.
                    
                
assembler.py https://bitbucket.org/halgari/pypy | Python | 305 lines
                    
1from rpython.jit.metainterp.history import AbstractDescr, getkind
                    
2from rpython.jit.codewriter.flatten import Register, Label, TLabel, KINDS
                    
2from rpython.jit.codewriter.flatten import Register, Label, TLabel, KINDS
                    
3from rpython.jit.codewriter.flatten import ListOfKind, IndirectCallTargets
                    
4from rpython.jit.codewriter.format import format_assembler
                    
4from rpython.jit.codewriter.format import format_assembler
                    
5from rpython.jit.codewriter.jitcode import SwitchDictDescr, JitCode
                    
6from rpython.jit.codewriter import heaptracker, longlong
                    
6from rpython.jit.codewriter import heaptracker, longlong
                    
7from rpython.rlib.objectmodel import ComputedIntSymbolic
                    
8from rpython.flowspace.model import Constant
                    
8from rpython.flowspace.model import Constant
                    
9from rpython.rtyper.lltypesystem import lltype, llmemory, rffi
                    
10from rpython.rtyper import rclass
                    
                
test_sandbox.py https://bitbucket.org/alex_gaynor/pypy-postgresql/ | Python | 249 lines
                    
5
                    
6from pypy.rpython.lltypesystem import rffi
                    
7from pypy.translator.interactive import Translation
                    
82def test_stat_ftruncate():
                    
83    from pypy.rpython.module.ll_os_stat import s_StatResult
                    
84    from pypy.rlib.rarithmetic import r_longlong
                    
                
optimizer.rst https://bitbucket.org/pypy/pypy/ | ReStructuredText | 201 lines
                    
10
                    
11The optimizer is in `rpython/jit/metainterp/optimizeopt/`.
                    
12When you try to make sense of this module, this page might get you started.
                    
17examples and you might want to take a look at it
                    
18(in `rpython/jit/metainterp/optimizeopt/test/*.py`).
                    
19The allowed operations can be found in `rpython/jit/metainterp/resoperation.py`.
                    
69transform the trace into an equivalent trace that executes faster. The method
                    
70`optimize_trace` in `rpython/jit/metainterp/optimizeopt/__init__.py` is the
                    
71main entry point.
                    
136instances of Box classes that can be found in
                    
137`rpython/jit/metainterp/history.py`. `OptValue` wraps those variables again
                    
138and maps the boxes to the optimization values in the optimizer. When a
                    
                
main.h https://bitbucket.org/rokujyouhitoma/pypy/ | C Header | 87 lines
                    
5
                    
6char *RPython_StartupCode(void);  /* forward */
                    
7
                    
48
                    
49    errmsg = RPython_StartupCode();
                    
50    if (errmsg) goto error;
                    
66    if (RPyExceptionOccurred()) {
                    
67        /* print the RPython traceback */
                    
68        pypy_debug_catch_fatal_exception();
                    
                
test_inspector.py https://bitbucket.org/pypy/pypy/ | Python | 49 lines
                    
1import os
                    
2from rpython.tool.udir import udir
                    
3from rpython.memory.gc.test.test_direct import BaseDirectGCTest, S
                    
3from rpython.memory.gc.test.test_direct import BaseDirectGCTest, S
                    
4from rpython.memory.gc import inspector
                    
5from rpython.rtyper.lltypesystem import llmemory
                    
41class TestHybridGC(InspectorTest):
                    
42    from rpython.memory.gc.hybrid import HybridGC as GCClass
                    
43
                    
44class TestMiniMarkGCSimple(InspectorTest):
                    
45    from rpython.memory.gc.minimark import MiniMarkGC as GCClass
                    
46    from rpython.memory.gc.minimarktest import SimpleArenaCollection
                    
                
exception.h https://bitbucket.org/pypy/pypy/ | C Header | 44 lines
                    
40RPY_EXTERN
                    
41void _RPyRaiseSimpleException(RPYTHON_EXCEPTION rexc);
                    
42
                    
                
interp_marshal.py https://bitbucket.org/rokujyouhitoma/pypy/ | Python | 536 lines
                    
326def invalid_typecode(space, u, tc):
                    
327    # %r not supported in rpython
                    
328    #u.raise_exc('invalid typecode in unmarshal: %r' % tc)
                    
343def register(codes, func):
                    
344    """NOT_RPYTHON"""
                    
345    for code in codes:
                    
                
tailrecursion.py https://bitbucket.org/pypy/pypy/ | Python | 34 lines
                    
1from rpython.flowspace.model import mkentrymap, checkgraph
                    
2
                    
28    if changed:
                    
29        from rpython.translator import simplify
                    
30        checkgraph(graph)
                    
                
test_runner.py https://bitbucket.org/pypy/pypy/ | Python | 30 lines
                    
1from rpython.jit.backend.test.runner_test import LLtypeBackendTest
                    
2from rpython.jit.backend.zarch.runner import CPU_S390_64
                    
2from rpython.jit.backend.zarch.runner import CPU_S390_64
                    
3from rpython.jit.tool.oparser import parse
                    
4from rpython.jit.metainterp.history import (AbstractFailDescr,
                    
9                                            Const, ConstFloat)
                    
10from rpython.jit.metainterp.resoperation import InputArgInt, InputArgFloat
                    
11from rpython.rtyper.lltypesystem import lltype
                    
11from rpython.rtyper.lltypesystem import lltype
                    
12from rpython.jit.metainterp.resoperation import ResOperation, rop
                    
13import py
                    
                
test_rint.py https://bitbucket.org/pypy/pypy/ | Python | 423 lines
                    
4from pypy.annotation import model as annmodel
                    
5from pypy.rpython.test import snippet
                    
6from pypy.rlib.rarithmetic import r_int, r_uint, r_longlong, r_ulonglong
                    
8from pypy.rlib import objectmodel
                    
9from pypy.rpython.test.tool import BaseRtypingTest, LLRtypeMixin, OORtypeMixin
                    
10
                    
10
                    
11from pypy.rpython.lltypesystem import lltype
                    
12from pypy.rpython.ootypesystem import ootype
                    
12from pypy.rpython.ootypesystem import ootype
                    
13from pypy.rpython.lltypesystem.lloperation import llop
                    
14
                    
                
lexers.py https://hg.codeplex.com/tortoisehg | Python | 217 lines
                    
59    extensions = ('.py', '.pyw')
                    
60    _lexer = Qsci.QsciLexerPython
                    
61    regex = re.compile(r'^#[!].*python')
                    
160        # Python lexer is quite similar
                    
161        _lexer = Qsci.QsciLexerPython
                    
162
                    
                
pypy.rst https://bitbucket.org/pypy/extradoc/ | ReStructuredText | 74 lines
                    
26
                    
27We have built a high level language to aid the construction of VMs (called *RPython*)
                    
28It imports the complete program
                    
33* Deliver features quickly, without sacrificing speed
                    
34* Loosely coupled (JIT, Interp., RPython)
                    
35
                    
                
ll_math.py https://bitbucket.org/pypy/pypy/ | Python | 431 lines
                    
5
                    
6from pypy.rpython.lltypesystem import lltype, rffi
                    
7from pypy.tool.sourcetools import func_with_new_name
                    
92def _likely_raise(errno, x):
                    
93    """Call this with errno != 0.  It usually raises the proper RPython
                    
94    exception, but may also just ignore it and return in case of underflow.
                    
                
stm-apr2012.rst https://bitbucket.org/pypy/extradoc/ | ReStructuredText | 85 lines
                    
50I did for example adapt PyPy's own ``translate.py``: see the tweak `in
                    
51rpython/rtyper.py`_.  Lines 273-281 are all that I needed to add, and
                    
52they are mostly a "simplification and parallelization" of the lines
                    
61.. _`a branch of Twisted`: svn://svn.twistedmatrix.com/svn/Twisted/branches/stm-5526
                    
62.. _`in rpython/rtyper.py`: https://bitbucket.org/pypy/pypy/src/stm-gc/pypy/rpython/rtyper.py#cl-249
                    
63
                    
                
longlong2float.py https://bitbucket.org/jakelundy/pypy | Python | 56 lines
                    
7"""
                    
8from pypy.rpython.lltypesystem import lltype, rffi
                    
9
                    
                
test_ll_os.py https://bitbucket.org/pypy/pypy/ | Python | 209 lines
                    
7
                    
8from pypy.rpython import extregistry
                    
9import errno
                    
27    """
                    
28    posix.times should compile as an RPython function and should return a
                    
29    five-tuple giving float-representations (seconds, effectively) of the four
                    
195        import py
                    
196        from pypy.rpython.test.test_llinterp import interpret
                    
197
                    
                
classes.html git://pkgs.fedoraproject.org/monkeystudio | HTML | 44 lines
                    
30<tr><td><a name="letter_A"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;A&nbsp;&nbsp;</div></td></tr></table>
                    
31</td><td><a class="el" href="classQsciLexerBatch.html">QsciLexerBatch</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classQsciLexerIDL.html">QsciLexerIDL</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classQsciLexerProperties.html">QsciLexerProperties</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classQsciLexerYAML.html">QsciLexerYAML</a>&nbsp;&nbsp;&nbsp;</td></tr><tr><td><a class="el" href="classQsciAbstractAPIs.html">QsciAbstractAPIs</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classQsciLexerCMake.html">QsciLexerCMake</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classQsciLexerJava.html">QsciLexerJava</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classQsciLexerPython.html">QsciLexerPython</a>&nbsp;&nbsp;&nbsp;</td><td><a name="letter_M"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;M&nbsp;&nbsp;</div></td></tr></table>
                    
32</td></tr><tr><td><a class="el" href="classQsciAPIs.html">QsciAPIs</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classQsciLexerCPP.html">QsciLexerCPP</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classQsciLexerJavaScript.html">QsciLexerJavaScript</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classQsciLexerRuby.html">QsciLexerRuby</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classQsciMacro.html">QsciMacro</a>&nbsp;&nbsp;&nbsp;</td></tr><tr><td><a name="letter_C"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;C&nbsp;&nbsp;</div></td></tr></table>
                    
                
PermanentLogEvent.java https://github.com/cyberpython/ComputationalGeometry.git | Java | 31 lines
                    
1/*
                    
2 * Copyright (c) 2010 Georgios Migdos <cyberpython@gmail.com>
                    
3 *
                    
26 *
                    
27 * @author cyberpython
                    
28 */
                    
                
test_simplify.py https://bitbucket.org/pypy/pypy/ | Python | 455 lines
                    
1import py
                    
2from rpython.translator.translator import TranslationContext, graphof
                    
3from rpython.translator.backendopt.all import backend_optimizations
                    
3from rpython.translator.backendopt.all import backend_optimizations
                    
4from rpython.translator.simplify import get_graph, transform_dead_op_vars
                    
5from rpython.flowspace.model import Block, Constant, summary
                    
5from rpython.flowspace.model import Block, Constant, summary
                    
6from rpython.conftest import option
                    
7
                    
19    # check that ovfcheck() is handled
                    
20    from rpython.rlib.rarithmetic import ovfcheck
                    
21    def f(x):
                    
35    # try:except: immediately around it
                    
36    from rpython.rlib.rarithmetic import ovfcheck
                    
37    def f(x):
                    
                
rmd5.py https://bitbucket.org/pypy/pypy/ | Python | 387 lines
                    
2"""
                    
3RPython implementation of MD5 checksums.
                    
4
                    
24
                    
25    Converted to RPython by arigo.
                    
26"""
                    
27
                    
28from rpython.rlib.rarithmetic import r_uint, r_ulonglong
                    
29
                    
41    # ----- start of custom code, think about something better... -----
                    
42    from rpython.rtyper.lltypesystem import lltype, rffi
                    
43    from rpython.translator.tool.cbuild import ExternalCompilationInfo
                    
132class RMD5(object):
                    
133    """RPython-level MD5 object.
                    
134    """
                    
                
test_rerased.py https://bitbucket.org/mikefc/pypy | Python | 321 lines
                    
4
                    
5from rpython.rlib.rerased import *
                    
6from rpython.annotator import model as annmodel
                    
6from rpython.annotator import model as annmodel
                    
7from rpython.annotator.annrpython import RPythonAnnotator
                    
8from rpython.rtyper.lltypesystem.rclass import OBJECTPTR
                    
8from rpython.rtyper.lltypesystem.rclass import OBJECTPTR
                    
9from rpython.rtyper.lltypesystem import lltype, llmemory
                    
10
                    
10
                    
11from rpython.rtyper.test.tool import BaseRtypingTest
                    
12
                    
13def make_annotator():
                    
14    a = RPythonAnnotator()
                    
15    a.translator.config.translation.taggedpointers = True
                    
                
reader_wrapper.h https://bitbucket.org/fbriol/lagrangian | C Header | 95 lines
                    
91
                    
92void ReaderPythonModule();
                    
93
                    
                
gcwrapper.py https://bitbucket.org/alex_gaynor/pypy-postgresql/ | Python | 246 lines
                    
1from pypy.rpython.lltypesystem import lltype, llmemory, llheap
                    
2from pypy.rpython import llinterp
                    
2from pypy.rpython import llinterp
                    
3from pypy.rpython.annlowlevel import llhelper
                    
4from pypy.rpython.memory import gctypelayout
                    
175
                    
176    def _walk_prebuilt_gc(self, collect):    # debugging only!  not RPython
                    
177        for obj in self.gcheap._all_prebuilt_gc:
                    
187    def make_finalizer_funcptr_for_type(self, TYPE):
                    
188        from pypy.rpython.memory.gctransform.support import get_rtti, \
                    
189                type_contains_pyobjs
                    
                
test_jit_libffi.py https://bitbucket.org/oberstet/pypy | Python | 40 lines
                    
2import ctypes
                    
3from rpython.rtyper.lltypesystem import lltype, rffi
                    
4from rpython.rlib import clibffi
                    
4from rpython.rlib import clibffi
                    
5from rpython.rlib.rarithmetic import intmask
                    
6from rpython.rlib.jit_libffi import CIF_DESCRIPTION
                    
6from rpython.rlib.jit_libffi import CIF_DESCRIPTION
                    
7from rpython.rlib.jit_libffi import jit_ffi_prep_cif, jit_ffi_call
                    
8
                    
                
test_call.py https://bitbucket.org/oberstet/pypy | Python | 59 lines
                    
1
                    
2from rpython.jit.metainterp.test.support import LLJitMixin
                    
3from rpython.rlib import jit
                    
                
smalllongobject.py https://bitbucket.org/pypy/pypy/ | Python | 414 lines
                    
7
                    
8from rpython.rlib.rarithmetic import LONGLONG_BIT, intmask, r_longlong, r_uint
                    
9from rpython.rlib.rbigint import rbigint
                    
9from rpython.rlib.rbigint import rbigint
                    
10from rpython.tool.sourcetools import func_renamer, func_with_new_name
                    
11
                    
                
test_object.py https://bitbucket.org/oberstet/pypy | Python | 406 lines
                    
4from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
                    
5from rpython.rtyper.lltypesystem import rffi, lltype
                    
6from pypy.module.cpyext.api import (
                    
                
DarwinUtils.h https://gitlab.com/stormrev/xbmca10.git | C Header | 48 lines
                    
37  float       GetIOSVersion(void);
                    
38  int         GetDarwinFrameworkPath(bool forPython, char* path, uint32_t *pathsize);
                    
39  int         GetDarwinExecutablePath(char* path, uint32_t *pathsize);
                    
                
test_longobject.py https://bitbucket.org/pypy/pypy/ | Python | 278 lines
                    
1import sys, py
                    
2from rpython.rtyper.lltypesystem import rffi, lltype
                    
3from pypy.objspace.std.intobject import W_IntObject
                    
                
rweaklist.py https://bitbucket.org/halgari/pypy | Python | 61 lines
                    
1import weakref
                    
2from rpython.rlib.rweakref import dead_ref
                    
3
                    
                
__init__.py https://bitbucket.org/oberstet/pypy | Python | 175 lines
                    
2from pypy.interpreter.error import OperationError
                    
3from rpython.rlib.objectmodel import we_are_translated
                    
4import sys
                    
12    def __init__(self, space, w_name):
                    
13        """NOT_RPYTHON""" # because parent __init__ isn't
                    
14        if space.config.translating:
                    
                
regutil.py git://github.com/IronLanguages/main.git | Python | 283 lines
                    
55
                    
56def RegisterPythonExe(exeFullPath, exeAlias = None, exeAppPath = None):
                    
57	"""Register a .exe file that uses Python.
                    
83
                    
84def UnregisterPythonExe(exeAlias):
                    
85	"""Unregister a .exe file that uses Python.
                    
                
types.py https://bitbucket.org/cbjadwani/pypy | Python | 66 lines
                    
1from rpython.annotator import model
                    
2from rpython.annotator.listdef import ListDef
                    
2from rpython.annotator.listdef import ListDef
                    
3from rpython.annotator.dictdef import DictDef
                    
4
                    
40def ptr(ll_type):
                    
41    from rpython.rtyper.lltypesystem.lltype import Ptr
                    
42    return model.SomePtr(Ptr(ll_type))
                    
                
interp_locale.py https://bitbucket.org/pypy/pypy/ | Python | 367 lines
                    
1from rpython.rlib import rposix
                    
2from rpython.rlib.rarithmetic import intmask
                    
6
                    
7from rpython.rlib import rlocale
                    
8from pypy.module.exceptions.interp_exceptions import _new_exception, W_Exception
                    
8from pypy.module.exceptions.interp_exceptions import _new_exception, W_Exception
                    
9from rpython.rtyper.lltypesystem import lltype, rffi
                    
10
                    
218                # note that 'result' may be the same pointer as 'msg_c',
                    
219                # so it must be converted to an RPython string *before*
                    
220                # we free msg_c.
                    
230                # note that 'result' may be the same pointer as 'msg_c',
                    
231                # so it must be converted to an RPython string *before*
                    
232                # we free msg_c.
                    
253                # note that 'result' may be the same pointer as 'msg_c',
                    
254                # so it must be converted to an RPython string *before*
                    
255                # we free msg_c.
                    
                
interp_sha.py https://bitbucket.org/timfel/pypy | Python | 59 lines
                    
1from rpython.rlib import rsha
                    
2from rpython.rlib.objectmodel import import_from_mixin
                    
                
interp_md5.py https://bitbucket.org/timfel/pypy | Python | 59 lines
                    
1from rpython.rlib import rmd5
                    
2from rpython.rlib.objectmodel import import_from_mixin
                    
                
registers.py https://bitbucket.org/timfel/pypy | Python | 55 lines
                    
1from rpython.jit.backend.zarch.locations import (FloatRegisterLocation,
                    
2        RegisterLocation, VectorRegisterLocation)
                    
                
memoryobject.py https://bitbucket.org/pypy/pypy/ | Python | 41 lines
                    
3from pypy.module.cpyext.pyobject import PyObject
                    
4from rpython.rtyper.lltypesystem import lltype
                    
5
                    
                
test_extmodules.py https://bitbucket.org/pypy/pypy/ | Python | 69 lines
                    
5from pypy.objspace.std import StdObjSpace
                    
6from rpython.tool.udir import udir
                    
7
                    
                
interp_fcntl.py https://bitbucket.org/pypy/pypy/ | 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
                    
                
eval.py https://bitbucket.org/pypy/pypy/ | Python | 231 lines
                    
2from pypy.interpreter.astcompiler import consts
                    
3from rpython.rtyper.lltypesystem import rffi, lltype
                    
4from pypy.module.cpyext.api import (
                    
                
exception.py https://github.com/woodrow/pyoac.git | Python | 51 lines
                    
1import py
                    
2from pypy.rpython.test.test_exception \
                    
3     import BaseTestException as RBaseTestException
                    
                
test_string.py https://bitbucket.org/pypy/pypy/ | Python | 221 lines
                    
80            guard_no_exception(descr=...)
                    
81            i95 = getfield_gc_i(p93, descr=<FieldS rpython.rlib.rbigint.rbigint.inst_size .*>)
                    
82            i96 = int_gt(i95, #)
                    
                
mixedmodule.py https://bitbucket.org/pypy/pypy/ | Python | 228 lines
                    
18    def __init__(self, space, w_name):
                    
19        """ NOT_RPYTHON """
                    
20        Module.__init__(self, space, w_name)
                    
26    def install(self):
                    
27        """NOT_RPYTHON: install this module, and it's submodules into
                    
28        space.builtin_modules"""
                    
64    def get_applevel_name(cls):
                    
65        """ NOT_RPYTHON """
                    
66        if cls.applevel_name is not None:
                    
133    def buildloaders(cls):
                    
134        """ NOT_RPYTHON """
                    
135        if not hasattr(cls, 'loaders'):
                    
164def getinterpevalloader(pkgroot, spec):
                    
165    """ NOT_RPYTHON """
                    
166    def ifileloader(space):
                    
                
asmmemmgr.py https://bitbucket.org/pypy/pypy/ | Python | 323 lines
                    
6from pypy.rlib.debug import have_debug_prints
                    
7from pypy.rpython.lltypesystem import lltype, llmemory, rffi
                    
8
                    
153    def _delete(self):
                    
154        "NOT_RPYTHON"
                    
155        if self._allocated:
                    
                
CMakeLists.txt git://pkgs.fedoraproject.org/gnuradio | CMake | 52 lines
                    
22########################################################################
                    
23include(GrPython)
                    
24include(GrSwig)
                    
                
interp_epoll.py https://bitbucket.org/pypy/pypy/ | Python | 194 lines
                    
9from pypy.interpreter.typedef import TypeDef, GetSetProperty
                    
10from rpython.rtyper.lltypesystem import lltype, rffi
                    
11from rpython.rtyper.tool import rffi_platform
                    
11from rpython.rtyper.tool import rffi_platform
                    
12from rpython.rlib._rsocket_rffi import socketclose, FD_SETSIZE
                    
13from rpython.rlib.rposix import get_saved_errno
                    
13from rpython.rlib.rposix import get_saved_errno
                    
14from rpython.rlib.rarithmetic import intmask
                    
15from rpython.translator.tool.cbuild import ExternalCompilationInfo
                    
                
CMakeLists.txt https://bitbucket.org/yorik/freecad.git | CMake | 200 lines
                    
70    DocumentObserver.cpp
                    
71    DocumentObserverPython.cpp
                    
72    DocumentPyImp.cpp
                    
90    DocumentObserver.h
                    
91    DocumentObserverPython.h
                    
92    FeaturePython.h
                    
                
test_ztranslation.py https://bitbucket.org/nibrahim/pypy | Python | 43 lines
                    
1import py, os, sys
                    
2from rpython.tool.udir import udir
                    
3from rpython.rlib.jit import JitDriver, unroll_parameters, set_param
                    
3from rpython.rlib.jit import JitDriver, unroll_parameters, set_param
                    
4from rpython.rlib.jit import PARAMETERS, dont_look_inside
                    
5from rpython.rlib.jit import promote
                    
5from rpython.rlib.jit import promote
                    
6from rpython.rlib import jit_hooks
                    
7from rpython.jit.metainterp.jitprof import Profiler
                    
7from rpython.jit.metainterp.jitprof import Profiler
                    
8from rpython.jit.backend.detect_cpu import getcpuclass
                    
9from rpython.jit.backend.test.support import CCompiledMixin
                    
9from rpython.jit.backend.test.support import CCompiledMixin
                    
10from rpython.jit.codewriter.policy import StopAtXPolicy
                    
11from rpython.translator.translator import TranslationContext
                    
                
test_funcobject.py https://bitbucket.org/pypy/pypy/ | Python | 112 lines
                    
1from rpython.rtyper.lltypesystem import rffi, lltype
                    
2from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
                    
                
rweakref.py https://bitbucket.org/squeaky/pypy | Python | 209 lines
                    
1"""
                    
2Weakref support in RPython.  Basic regular weakrefs without callbacks
                    
3are supported.  This file contains the following additions:
                    
9
                    
10ref = weakref.ref    # basic regular weakrefs are supported in RPython
                    
11
                    
76
                    
77from rpython.rtyper import extregistry
                    
78from rpython.annotator import model as annmodel
                    
78from rpython.annotator import model as annmodel
                    
79from rpython.tool.pairtype import pairtype
                    
80
                    
89    def specialize_call(self, hop):
                    
90        from rpython.rtyper.lltypesystem import lltype
                    
91        hop.exception_cannot_occur()
                    
                
test_rrange.py https://bitbucket.org/pypy/pypy/ | Python | 195 lines
                    
1from pypy.rpython.rrange import *
                    
2from pypy.rpython.test.tool import BaseRtypingTest, LLRtypeMixin, OORtypeMixin
                    
189class TestLLtype(BaseTestRrange, LLRtypeMixin):
                    
190    from pypy.rpython.lltypesystem import rrange 
                    
191
                    
193class TestOOtype(BaseTestRrange, OORtypeMixin):
                    
194    from pypy.rpython.ootypesystem import rrange 
                    
195
                    
                
rpy.py https://bitbucket.org/cbjadwani/pypy | Python | 51 lines
                    
1
                    
2from rpython.rlib.rsre import rsre_char
                    
3from rpython.rlib.rsre.rsre_core import match
                    
3from rpython.rlib.rsre.rsre_core import match
                    
4from rpython.rlib.rarithmetic import intmask
                    
5
                    
                
ropenssl.py https://bitbucket.org/pypy/pypy/ | Python | 294 lines
                    
1from pypy.rpython.lltypesystem import rffi, lltype
                    
2from pypy.rpython.tool import rffi_platform
                    
                
test_regloc.py https://bitbucket.org/alex_gaynor/pypy-postgresql/ | Python | 322 lines
                    
44def test_relocation():
                    
45    from pypy.rpython.lltypesystem import lltype, rffi
                    
46    from pypy.jit.backend.x86 import codebuf
                    
                
effectinfo.py https://bitbucket.org/pypy/pypy/ | Python | 300 lines
                    
1from pypy.jit.metainterp.typesystem import deref, fieldType, arrayItem
                    
2from pypy.rpython.lltypesystem.rclass import OBJECT
                    
3from pypy.rpython.lltypesystem import lltype
                    
3from pypy.rpython.lltypesystem import lltype
                    
4from pypy.rpython.ootypesystem import ootype
                    
5from pypy.translator.backendopt.graphanalyze import BoolGraphAnalyzer
                    
                
test_lloperation.py https://bitbucket.org/pypy/pypy/ | Python | 152 lines
                    
1import py
                    
2from rpython.rtyper.lltypesystem.lloperation import LL_OPERATIONS, llop, void
                    
3from rpython.rtyper.lltypesystem import lltype, opimpl
                    
3from rpython.rtyper.lltypesystem import lltype, opimpl
                    
4from rpython.rtyper.llinterp import LLFrame
                    
5from rpython.rtyper.test.test_llinterp import interpret
                    
5from rpython.rtyper.test.test_llinterp import interpret
                    
6from rpython.rtyper import rclass
                    
7from rpython.rlib.rarithmetic import LONGLONG_MASK, r_longlong, r_ulonglong
                    
33def test_llop_interp():
                    
34    from rpython.rtyper.annlowlevel import LowLevelAnnotatorPolicy
                    
35    def llf(x, y):
                    
40def test_llop_with_voids_interp():
                    
41    from rpython.rtyper.annlowlevel import LowLevelAnnotatorPolicy
                    
42    S = lltype.GcStruct('S', ('x', lltype.Signed), ('y', lltype.Signed))
                    
                
llannotation.py https://bitbucket.org/pypy/pypy/ | Python | 202 lines
                    
3"""
                    
4from rpython.tool.pairtype import pair, pairtype
                    
5from rpython.annotator.model import (
                    
8    s_None, s_Bool, UnionError, AnnotatorError)
                    
9from rpython.rtyper.lltypesystem import lltype, llmemory
                    
10from rpython.rtyper.lltypesystem.lltype import SomePtr
                    
10from rpython.rtyper.lltypesystem.lltype import SomePtr
                    
11from rpython.rtyper.lltypesystem.llmemory import (
                    
12    SomeAddress, SomeTypedAddressAccess)
                    
19    def sub((s_addr1, s_addr2)):
                    
20        from rpython.annotator.bookkeeper import getbookkeeper
                    
21        if s_addr1.is_null_address() and s_addr2.is_null_address():
                    
87    def call(self, args):
                    
88        from rpython.annotator.bookkeeper import getbookkeeper
                    
89        bookkeeper = getbookkeeper()
                    
                
runner.py https://bitbucket.org/jterrace/pypy | Python | 218 lines
                    
1import py
                    
2from pypy.rpython.lltypesystem import lltype, llmemory, rffi
                    
3from pypy.rpython.lltypesystem.lloperation import llop
                    
3from pypy.rpython.lltypesystem.lloperation import llop
                    
4from pypy.rpython.llinterp import LLInterpreter
                    
5from pypy.rlib.objectmodel import we_are_translated
                    
67        """
                    
68        NOT_RPYTHON
                    
69        """
                    
                
CMakeLists.txt git://pkgs.fedoraproject.org/gnuradio | CMake | 175 lines
                    
22########################################################################
                    
23include(GrPython)
                    
24
                    
                
executor.py https://bitbucket.org/vanl/pypy | Python | 380 lines
                    
4
                    
5from rpython.rtyper.lltypesystem import rffi, lltype
                    
6from rpython.rlib import jit_libffi
                    
311def _build_basic_executors():
                    
312    "NOT_RPYTHON"
                    
313    type_info = (
                    
342def _build_ptr_executors():
                    
343    "NOT_RPYTHON"
                    
344    ptr_info = (
                    
365def _add_aliased_executors():
                    
366    "NOT_RPYTHON"
                    
367    aliases = (
                    
                
boehm.py https://bitbucket.org/oberstet/pypy | Python | 188 lines
                    
1from rpython.memory.gctransform.transform import GCTransformer, mallocHelpers
                    
2from rpython.memory.gctransform.support import (get_rtti,
                    
3    _static_deallocator_body_for_type, LLTransformerOp, ll_call_destructor)
                    
4from rpython.rtyper.lltypesystem import lltype, llmemory
                    
5from rpython.flowspace.model import Constant
                    
5from rpython.flowspace.model import Constant
                    
6from rpython.rtyper.lltypesystem.lloperation import llop
                    
7from rpython.rtyper import rmodel
                    
                
debug.py https://bitbucket.org/pypy/pypy/ | Python | 343 lines
                    
1import sys, time
                    
2from pypy.rpython.extregistry import ExtRegistryEntry
                    
3
                    
16    def specialize_call(self, hop):
                    
17        from pypy.rpython.lltypesystem import lltype
                    
18        vlist = hop.inputargs(lltype.Bool, lltype.Void)
                    
22def fatalerror(msg, traceback=False):
                    
23    from pypy.rpython.lltypesystem import lltype
                    
24    from pypy.rpython.lltypesystem.lloperation import llop
                    
134    def specialize_call(self, hop):
                    
135        from pypy.rpython.lltypesystem import lltype
                    
136        t = hop.rtyper.annotator.translator
                    
156    def specialize_call(self, hop):
                    
157        from pypy.rpython.lltypesystem import lltype
                    
158        hop.exception_cannot_occur()
                    
                
app_operator.py https://bitbucket.org/alex_gaynor/pypy-postgresql/ | Python | 116 lines
                    
1'''NOT_RPYTHON: because of attrgetter and itemgetter
                    
2Operator interface.
                    
                
test_stackcheck.py https://bitbucket.org/pypy/pypy/ | Python | 121 lines
                    
4from pypy.translator.transform import insert_ll_stackcheck
                    
5from pypy.rpython.memory.gctransform import framework
                    
6
                    
97    class GCTransform(framework.FrameworkGCTransformer):
                    
98        from pypy.rpython.memory.gc.generation import GenerationGC as \
                    
99                                                          GCClass
                    
                
test_refcount.py https://bitbucket.org/pypy/pypy/ | Python | 159 lines
                    
2
                    
3from rpython.rtyper.lltypesystem import lltype
                    
4from rpython.translator.translator import TranslationContext
                    
4from rpython.translator.translator import TranslationContext
                    
5from rpython.translator.c.test.test_genc import compile
                    
6
                    
                
test__jit_vref.py https://bitbucket.org/pypy/pypy/ | Python | 148 lines
                    
1import py
                    
2from rpython.rlib.jit import virtual_ref, virtual_ref_finish
                    
3from rpython.rlib.jit import vref_None, non_virtual_ref, InvalidVirtualRef
                    
3from rpython.rlib.jit import vref_None, non_virtual_ref, InvalidVirtualRef
                    
4from rpython.rlib._jit_vref import SomeVRef
                    
5from rpython.annotator import model as annmodel
                    
5from rpython.annotator import model as annmodel
                    
6from rpython.annotator.annrpython import RPythonAnnotator
                    
7from rpython.rtyper.rclass import OBJECTPTR
                    
7from rpython.rtyper.rclass import OBJECTPTR
                    
8from rpython.rtyper.lltypesystem import lltype
                    
9
                    
9
                    
10from rpython.rtyper.test.tool import BaseRtypingTest
                    
11
                    
                
test_counter.py https://bitbucket.org/pypy/pypy/ | Python | 131 lines
                    
1from rpython.jit.metainterp.counter import JitCounter
                    
2
                    
                
test_rthread.py https://bitbucket.org/timfel/pypy | Python | 339 lines
                    
1import gc, time
                    
2from rpython.rlib.rthread import *
                    
3from rpython.rlib.rarithmetic import r_longlong
                    
3from rpython.rlib.rarithmetic import r_longlong
                    
4from rpython.rlib import objectmodel
                    
5from rpython.translator.c.test.test_boehm import AbstractGCTestClass
                    
5from rpython.translator.c.test.test_boehm import AbstractGCTestClass
                    
6from rpython.rtyper.lltypesystem import lltype, rffi
                    
7import py
                    
59def test_threadlocalref_on_llinterp():
                    
60    from rpython.rtyper.test.test_llinterp import interpret
                    
61    tlfield = ThreadLocalField(lltype.Signed, "rthread_test_")
                    
107        import time
                    
108        from rpython.rlib.debug import ll_assert
                    
109
                    
                
gcheader.py https://bitbucket.org/vanl/pypy | Python | 48 lines
                    
1import weakref
                    
2from rpython.rtyper.lltypesystem import lltype, llmemory
                    
3
                    
11    def __init__(self, HDR):
                    
12        """NOT_RPYTHON"""
                    
13        self.HDR = HDR
                    
                
__init__.py https://bitbucket.org/pypy/pypy/ | Python | 184 lines
                    
2from pypy.interpreter.error import OperationError
                    
3from rpython.rlib.objectmodel import we_are_translated
                    
4from rpython.rlib import rdynload
                    
13    def __init__(self, space, w_name):
                    
14        """NOT_RPYTHON""" # because parent __init__ isn't
                    
15        if space.config.translating:
                    
                
test_eval.py https://bitbucket.org/alex_gaynor/pypy-postgresql/ | Python | 225 lines
                    
1from pypy.rpython.lltypesystem import rffi, lltype
                    
2from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
                    
                
test_blackhole.py https://bitbucket.org/pypy/pypy/ | Python | 242 lines
                    
1import py
                    
2from rpython.rlib.jit import JitDriver
                    
3from rpython.jit.metainterp.test.support import LLJitMixin
                    
3from rpython.jit.metainterp.test.support import LLJitMixin
                    
4from rpython.jit.metainterp.blackhole import BlackholeInterpBuilder
                    
5from rpython.jit.metainterp.blackhole import BlackholeInterpreter
                    
5from rpython.jit.metainterp.blackhole import BlackholeInterpreter
                    
6from rpython.jit.metainterp.blackhole import convert_and_run_from_pyjitpl
                    
7from rpython.jit.metainterp import history, pyjitpl, jitexc, resoperation
                    
7from rpython.jit.metainterp import history, pyjitpl, jitexc, resoperation
                    
8from rpython.jit.codewriter.assembler import JitCode
                    
9from rpython.rtyper.lltypesystem import lltype, llmemory
                    
9from rpython.rtyper.lltypesystem import lltype, llmemory
                    
10from rpython.rtyper.llinterp import LLException
                    
11
                    
                
frameobject.py https://bitbucket.org/alex_gaynor/pypy-postgresql/ | Python | 90 lines
                    
1from pypy.rpython.lltypesystem import rffi, lltype
                    
2from pypy.module.cpyext.api import (
                    
                
test_rjvm.py https://bitbucket.org/unbit/pypy | Python | 45 lines
                    
8
                    
9from rpython.rlib.rjvm import java, JavaWrapper, JavaClassWrapper, JavaInstanceWrapper, JavaMethodWrapper, JavaStaticMethodWrapper
                    
10
                    
                
test_minimark.py https://bitbucket.org/alex_gaynor/pypy-postgresql/ | Python | 70 lines
                    
1from pypy.rpython.lltypesystem import llmemory
                    
2from pypy.rpython.memory.gc.minimark import MiniMarkGC
                    
                
PyScripter.dpr http://seewind.googlecode.com/svn/trunk/ | Pascal | 119 lines
                    
42  dlgSynEditOptions in 'dlgSynEditOptions.pas' {fmEditorOptionsDialog},
                    
43  SynHighlighterPython in 'SynHighlighterPython.pas',
                    
44  frmToDo in 'frmToDo.pas' {ToDoWindow},
                    
                
extfunc.py https://bitbucket.org/pypy/pypy/ | Python | 293 lines
                    
1from pypy.rpython import extregistry
                    
2from pypy.rpython.extregistry import ExtRegistryEntry
                    
2from pypy.rpython.extregistry import ExtRegistryEntry
                    
3from pypy.rpython.lltypesystem.lltype import typeOf
                    
4from pypy.objspace.flow.model import Constant
                    
103            return
                    
104        from pypy.rpython.tool import rffi_platform as platform
                    
105        # copy some stuff
                    
115        kwds = kwds.copy()
                    
116        from pypy.rpython.lltypesystem import rffi
                    
117
                    
243    """
                    
244    function: the RPython function that will be rendered as an external function (e.g.: math.floor)
                    
245    args: a list containing the annotation of the arguments
                    
247    export_name: the name of the function as it will be seen by the backends
                    
248    llimpl, ooimpl: optional; if provided, these RPython functions are called instead of the target function
                    
249    llfakeimpl, oofakeimpl: optional; if provided, they are called by the llinterpreter
                    
                
CompositePanelProviderImpl.java https://bitbucket.org/netbeans/main_contrib | Java | 85 lines
                    
66        } else if (PYTHON_PATH.equals(nm)) {            
                    
67            return new CustomizerPythonPath(uiProps);
                    
68        }
                    
                
index-report.rst https://bitbucket.org/branan/pypy | ReStructuredText | 172 lines
                    
63
                    
64`D10.1 Aspect-Oriented, Design-by-Contract Programming and RPython static
                    
65checking`_ is a report about the ``aop`` module providing an Aspect Oriented
                    
67Design-by-Contract module. It also introduces RPylint static type checker for
                    
68RPython code. *(2007-03-22)*
                    
69
                    
158.. _`D09.1 Constraint Solving and Semantic Web`: http://codespeak.net/pypy/extradoc/eu-report/D09.1_Constraint_Solving_and_Semantic_Web-2007-05-11.pdf
                    
159.. _`D10.1 Aspect-Oriented, Design-by-Contract Programming and RPython static checking`: http://codespeak.net/pypy/extradoc/eu-report/D10.1_Aspect_Oriented_Programming_in_PyPy-2007-03-22.pdf
                    
160.. _`D11.1 PyPy for Embedded Devices`: http://codespeak.net/pypy/extradoc/eu-report/D11.1_PyPy_for_Embedded_Devices-2007-03-26.pdf
                    
                
test_stackcheck.py https://bitbucket.org/pypy/pypy/ | Python | 121 lines
                    
1from rpython.conftest import option
                    
2from rpython.translator.translator import TranslationContext, graphof
                    
2from rpython.translator.translator import TranslationContext, graphof
                    
3from rpython.translator.backendopt.all import backend_optimizations
                    
4from rpython.translator.transform import insert_ll_stackcheck
                    
4from rpython.translator.transform import insert_ll_stackcheck
                    
5from rpython.memory.gctransform import shadowstack
                    
6
                    
97    class GCTransform(shadowstack.ShadowStackFrameworkGCTransformer):
                    
98        from rpython.memory.gc.generation import GenerationGC as \
                    
99                                                          GCClass
                    
                
test_generator.py https://bitbucket.org/pypy/pypy/ | Python | 134 lines
                    
2
                    
3from rpython.rtyper.test.tool import BaseRtypingTest
                    
4
                    
                
arm.rst https://bitbucket.org/pypy/pypy/ | ReStructuredText | 165 lines
                    
6Here we describe the setup required and the steps needed to follow to translate
                    
7an interpreter using the RPython translator to target ARM using a cross
                    
8compilation toolchain.
                    
9
                    
10To translate an RPython program for ARM we can either
                    
11translate directly on an ARM device following the normal translation steps. Unfortunately this is not really feasible on most ARM machines. The alternative is to cross-translate using a cross-compilation toolchain.
                    
150
                    
151  pypy ~/path_to_pypy_checkout/rpython/bin/rpython -O2 --platform=arm target.py
                    
152
                    
158
                    
159  pypy <path to rpython>/rpython/bin/rpython -Ojit --platform=arm --gcrootfinder=shadowstack --jit-backend=arm targetpypystandalone.py
                    
160
                    
                
 

Source

Language