100+ results results for 'rpython repo:pypy/pypy' (1136 ms)
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_counteric4.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_countcallbuilder.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 4CMakeLists.txt https://github.com/trondeau/gnuradio-old.git | CMake | 114 lines
22######################################################################## 23include(GrPython) 24test_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.hacp.vim https://gitlab.com/wwitzel3/vim-config | Vim Script | 422 lines
122" 123function acp#meetsForPythonOmni(context) 124 return has('python') && g:acp_behaviorPythonOmniLength >= 0 && 124 return has('python') && g:acp_behaviorPythonOmniLength >= 0 && 125 \ a:context =~ '\k\.\k\{' . g:acp_behaviorPythonOmniLength . ',}$' 126endfunctionlinuxprivchecker.py https://gitlab.com/surajraghuvanshi/Privlage-Esclator | Python | 44 lines
23 { 'name' : 'rpath', 'help' : 'Remote file path', 'default' : '/tmp/%s' % (random.randint(1,99999)), 'nargs' : '?' }, 24 { 'name' : 'rpython', 'help' : 'Remote python interpreter path', 'default' : 'python', 'nargs' : '?' }, 25 ]) 34 ShellCmd( 35 payload = """${rpython} '${rpath}'""", 36 name = 'exec_script'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 7PythonMonitor.cpp https://github.com/xbmc/android.git | C++ | 137 lines
82 m_refs = 1; 83 g_pythonParser.RegisterPythonMonitorCallBack(this); 84} 98{ 99 g_pythonParser.UnregisterPythonMonitorCallBack(this); 100}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(test_scandir.py https://gitlab.com/Smileyt/KomodoEdit | Python | 279 lines
258 if hasattr(scandir, 'scandir_python'): 259 class TestScandirPython(TestMixin, unittest.TestCase): 260 def setUp(self):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-refstest_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_termioslldict.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_countREADME.md https://gitlab.com/apachipa/docs | Markdown | 93 lines
19 20PyPy started out as a Python interpreter written in the Python language itself. Current PyPy versions are translated from RPython to C code and compiled. The PyPy JIT (short for "Just In Time") compiler is capable of turning Python code into machine code at run time. 21XBPython.h https://gitlab.com/fflayol/xbmc | C Header | 136 lines
78 virtual void Announce(ANNOUNCEMENT::AnnouncementFlag flag, const char *sender, const char *message, const CVariant &data); 79 void RegisterPythonPlayerCallBack(IPlayerCallback* pCallback); 80 void UnregisterPythonPlayerCallBack(IPlayerCallback* pCallback); 80 void UnregisterPythonPlayerCallBack(IPlayerCallback* pCallback); 81 void RegisterPythonMonitorCallBack(XBMCAddon::xbmc::Monitor* pCallback); 82 void UnregisterPythonMonitorCallBack(XBMCAddon::xbmc::Monitor* pCallback);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 5test_writeanalyze.py https://github.com/yasirs/pypy.git | Python | 406 lines
1import py 2from pypy.rpython.lltypesystem import lltype 3from pypy.rpython.ootypesystem import ootype 198 def test_llexternal(self): 199 from pypy.rpython.lltypesystem.rffi import llexternal 200 from pypy.rpython.lltypesystem import lltype 260 def test_llexternal_with_callback(self): 261 from pypy.rpython.lltypesystem.rffi import llexternal 262 from pypy.rpython.lltypesystem import lltypestdtypedef.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.arityacp.vim https://gitlab.com/vim-IDE/AutoComplPop | Vim Script | 170 lines
85 \ 'command' : "\<C-x>\<C-o>", 86 \ 'meets' : 'acp#meetsForPythonOmni', 87 \ 'repeat' : 0, 141call s:defineOption('g:acp_behaviorRubyOmniSymbolLength', 1) 142call s:defineOption('g:acp_behaviorPythonOmniLength', 0) 143call s:defineOption('g:acp_behaviorPerlOmniLength', -1)__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 gilstoresink.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 simplifybuiltin.py https://github.com/thepian/pypy.git | Python | 238 lines
5from pypy.tool import udir 6from pypy.rpython.test.test_rbuiltin import BaseTestRbuiltin 7from pypy.rpython.module.test.test_ll_time import BaseTestTime as llBaseTestTime 213 def test_rffi_primitive(self): 214 from pypy.rpython.lltypesystem import rffi, lltype 215 from pypy.translator.tool.cbuild import ExternalCompilationInfoctypeenum.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 """ap.cpp https://gitlab.com/juan-/topologygenerator | C++ | 210 lines
163 164 std::vector<std::string> allNodes = this->GroupAsNodeContainerPython(); //all station nodes ! 165 for(size_t i = 0; i < allNodes.size(); i++)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 rclasstest_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_longlongoptimizer.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 amain.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();regutil.py https://gitlab.com/orvi2014/rcs-db-ext | 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.GrSwig.cmake https://gitlab.com/jostikas/Thesis_final | CMake | 251 lines
24 25include(GrPython) 26 199 200 include(GrPython) 201 GR_PYTHON_INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${name}.pytest_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 SimpleArenaCollectionexception.h https://bitbucket.org/pypy/pypy/ | C Header | 44 lines
40RPY_EXTERN 41void _RPyRaiseSimpleException(RPYTHON_EXCEPTION rexc); 42interp_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 pyLanguageHook.cpp https://gitlab.com/sloshedpuppie/LetsGoRetro | C++ | 193 lines
158 159 void PythonLanguageHook::RegisterPlayerCallback(IPlayerCallback* player) { XBMC_TRACE; g_pythonParser.RegisterPythonPlayerCallBack(player); } 160 void PythonLanguageHook::UnregisterPlayerCallback(IPlayerCallback* player) { XBMC_TRACE; g_pythonParser.UnregisterPythonPlayerCallBack(player); } 160 void PythonLanguageHook::UnregisterPlayerCallback(IPlayerCallback* player) { XBMC_TRACE; g_pythonParser.UnregisterPythonPlayerCallBack(player); } 161 void PythonLanguageHook::RegisterMonitorCallback(XBMCAddon::xbmc::Monitor* monitor) { XBMC_TRACE; g_pythonParser.RegisterPythonMonitorCallBack(monitor); } 162 void PythonLanguageHook::UnregisterMonitorCallback(XBMCAddon::xbmc::Monitor* monitor) { XBMC_TRACE; g_pythonParser.UnregisterPythonMonitorCallBack(monitor); }gcheader.py https://github.com/thepian/pypy.git | Python | 47 lines
1import weakref 2from pypy.rpython.lltypesystem import lltype, llmemory 3 11 def __init__(self, HDR): 12 """NOT_RPYTHON""" 13 self.HDR = HDR__init__.py https://gitlab.com/orvi2014/rcs-db-ext | Python | 113 lines
20 import dbgpyapp 21 pywin.framework.app.CreateDefaultGUI(dbgpyapp.DebuggerPythonApp) 22test_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 14build_env.ps1 https://gitlab.com/ricardo.hernandez/salt | Powershell | 302 lines
148Write-Output " - Checking for VC Compiler for Python 2.7 installation . . ." 149If (Test-Path "$($ini[$bitPaths]['VCforPythonDir'])\vcvarsall.bat") { 150 157 Write-Output " - Microsoft Visual C++ for Python2.7 Not Found . . ." 158 Write-Output " - Downloading $($ini['Prerequisites']['VCforPython']) . . ." 159 $file = "$($ini['Prerequisites']['VCforPython'])" 164 # Install Microsoft Visual C++ for Python2.7 165 Write-Output " - Installing $($ini['Prerequisites']['VCforPython']) . . ." 166 $file = "$($ini['Settings']['DownloadDir'])\$($ini['Prerequisites']['VCforPython'])"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 162pypy.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) 35ll_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.base.py https://github.com/lalitjsraks/pypy.git | Python | 372 lines
1from pypy.rpython.lltypesystem import lltype, llmemory, llarena 2from pypy.rlib.debug import ll_assert 2from pypy.rlib.debug import ll_assert 3from pypy.rpython.memory.gcheader import GCHeaderBuilder 4from pypy.rpython.memory.support import DEFAULT_CHUNK_SIZE 4from pypy.rpython.memory.support import DEFAULT_CHUNK_SIZE 5from pypy.rpython.memory.support import get_address_stack, get_address_deque 6from pypy.rpython.memory.support import AddressDict 6from pypy.rpython.memory.support import AddressDict 7from pypy.rpython.lltypesystem.llmemory import NULL, raw_malloc_usage 8 212 from pypy.rlib.objectmodel import we_are_translated 213 from pypy.rpython.memory.support import AddressDict 214 self._debug_seen = AddressDict() 348 config.translation.gc,)) 349 module = __import__("pypy.rpython.memory.gc." + modulename, 350 globals(), locals(), [classname])test_unsimplify.py https://github.com/thepian/pypy.git | Python | 90 lines
3from pypy.translator.unsimplify import split_block, call_final_function 4from pypy.rpython.llinterp import LLInterpreter 5from pypy.objspace.flow.model import checkgraphrbool.py https://github.com/thepian/pypy.git | Python | 78 lines
2from pypy.annotation import model as annmodel 3from pypy.rpython.lltypesystem.lltype import Signed, Unsigned, Bool, Float 4from pypy.rpython.error import TyperError 4from pypy.rpython.error import TyperError 5from pypy.rpython.rmodel import IntegerRepr, BoolRepr 6from pypy.rpython.robject import PyObjRepr, pyobj_repr 6from pypy.rpython.robject import PyObjRepr, pyobj_repr 7from pypy.rpython.rmodel import log 8 49 if r_from.lowleveltype == Bool: 50 from pypy.rpython.rint import signed_repr 51 v_int = llops.genop('cast_bool_to_int', [v], resulttype=Signed)test_symbolic_x86.py https://github.com/thepian/pypy.git | Python | 81 lines
2from pypy.jit.backend.llsupport.symbolic import * 3from pypy.rpython.lltypesystem import lltype, rffi 4stm-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 63CMakeLists.txt https://github.com/trondeau/gnuradio-old.git | CMake | 60 lines
22######################################################################## 23include(GrPython) 24include(GrSwig)IronPythonParameterInfo.cs https://gitlab.com/SplatoonModdingHub/PTVS | C# | 116 lines
55 if (ri != null) { 56 _paramType = new[] { _interpreter.GetTypeFromType(ri.GetParameterPythonType(_parameterInfo)) }; 57 }SBFrame.h https://gitlab.com/jorjpimm/lldb | C Header | 228 lines
213#ifndef LLDB_DISABLE_PYTHON 214 friend class lldb_private::ScriptInterpreterPython; 215#endiflonglong2float.py https://bitbucket.org/jakelundy/pypy | Python | 56 lines
7""" 8from pypy.rpython.lltypesystem import lltype, rffi 9test_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 197classes.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"> A </div></td></tr></table> 31</td><td><a class="el" href="classQsciLexerBatch.html">QsciLexerBatch</a> </td><td><a class="el" href="classQsciLexerIDL.html">QsciLexerIDL</a> </td><td><a class="el" href="classQsciLexerProperties.html">QsciLexerProperties</a> </td><td><a class="el" href="classQsciLexerYAML.html">QsciLexerYAML</a> </td></tr><tr><td><a class="el" href="classQsciAbstractAPIs.html">QsciAbstractAPIs</a> </td><td><a class="el" href="classQsciLexerCMake.html">QsciLexerCMake</a> </td><td><a class="el" href="classQsciLexerJava.html">QsciLexerJava</a> </td><td><a class="el" href="classQsciLexerPython.html">QsciLexerPython</a> </td><td><a name="letter_M"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> M </div></td></tr></table> 32</td></tr><tr><td><a class="el" href="classQsciAPIs.html">QsciAPIs</a> </td><td><a class="el" href="classQsciLexerCPP.html">QsciLexerCPP</a> </td><td><a class="el" href="classQsciLexerJavaScript.html">QsciLexerJavaScript</a> </td><td><a class="el" href="classQsciLexerRuby.html">QsciLexerRuby</a> </td><td><a class="el" href="classQsciMacro.html">QsciMacro</a> </td></tr><tr><td><a name="letter_C"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> C </div></td></tr></table>TemporaryLogEvent.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 */QsciLexer.hpp https://bitbucket.org/mbritanicus/newbreeze.git | C++ Header | 94 lines
12#include <Qsci/qscilexercustom.h> 13#include <Qsci/qscilexerpython.h> 14#include <Qsci/qscilexerhtml.h> 41 42class QLexerPython : public QsciLexerPython { 43 Q_OBJECT 45 public: 46 QLexerPython( QObject *parent = 0 ); 47test_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 = Truereader_wrapper.h https://bitbucket.org/fbriol/lagrangian | C Header | 95 lines
91 92void ReaderPythonModule(); 93gcwrapper.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_pyobjsCMakeLists.txt https://github.com/trondeau/gnuradio-old.git | CMake | 45 lines
19 20include(GrPython) 21test_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 8test_call.py https://bitbucket.org/oberstet/pypy | Python | 59 lines
1 2from rpython.jit.metainterp.test.support import LLJitMixin 3from rpython.rlib import jitsmalllongobject.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 11Makefile https://github.com/glk/freebsd-head.git | Makefile | 56 lines
48 ScriptInterpreterNone.cpp \ 49 ScriptInterpreterPython.cpp 50test_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);stat_register.cc https://gitlab.com/pranith/gem5 | C++ | 53 lines
47 48void registerPythonStatsHandlers() 49{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_IntObjectacp.vim https://gitlab.com/wwitzel3/vim-config | Vim Script | 164 lines
79 \ 'command' : "\<C-x>\<C-o>", 80 \ 'meets' : 'acp#meetsForPythonOmni', 81 \ 'repeat' : 0, 135call l9#defineVariableDefault('g:acp_behaviorRubyOmniSymbolLength', 1) 136call l9#defineVariableDefault('g:acp_behaviorPythonOmniLength', 0) 137call l9#defineVariableDefault('g:acp_behaviorPerlOmniLength', -1)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: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.test_list.py https://github.com/thepian/pypy.git | Python | 232 lines
1from pypy.rpython.lltypesystem import lltype 2from pypy.translator.unsimplify import varoftypeqSlicerBaseQTGUIPythonQtDecorators.h https://github.com/pieper/Slicer4.git | C Header | 59 lines
44 Q_ASSERT(pythonManager); 45 pythonManager->registerClassForPythonQt(&qSlicerAbstractModuleWidget::staticMetaObject); 46 }util.py https://gitlab.com/orvi2014/rcs-db-ext | Python | 227 lines
30 31def RegisterPythonServer(filename, progids=None, verbose=0): 32 if progids:interp_sha.py https://bitbucket.org/timfel/pypy | Python | 59 lines
1from rpython.rlib import rsha 2from rpython.rlib.objectmodel import import_from_mixininterp_md5.py https://bitbucket.org/timfel/pypy | Python | 59 lines
1from rpython.rlib import rmd5 2from rpython.rlib.objectmodel import import_from_mixinregisters.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 5test_extmodules.py https://bitbucket.org/pypy/pypy/ | Python | 69 lines
5from pypy.objspace.std import StdObjSpace 6from rpython.tool.udir import udir 7interp_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 ExternalCompilationInfoeval.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 RBaseTestExceptiontest_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: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 ExternalCompilationInfoCMakeLists.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.hVCCompiler.cs https://gitlab.com/SplatoonModdingHub/PTVS | C# | 275 lines
64 using (var baseKey = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, RegistryView.Registry32)) 65 using (var key = baseKey.OpenSubKey("SOFTWARE\\Microsoft\\DevDiv\\VCForPython\\" + version)) { 66 if (key != null) { 72 using (var baseKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32)) 73 using (var key = baseKey.OpenSubKey("SOFTWARE\\Microsoft\\DevDiv\\VCForPython\\" + version)) { 74 if (key != null) {ll_os_environ.py https://github.com/thepian/pypy.git | Python | 198 lines
2from pypy.annotation import model as annmodel 3from pypy.rpython.controllerentry import Controller 4from pypy.rpython.extfunc import register_external 4from pypy.rpython.extfunc import register_external 5from pypy.rpython.lltypesystem import rffi, lltype 6from pypy.rlib import rposix 9# 10# Annotation support to control access to 'os.environ' in the RPython program 11 18 def getitem(self, obj, key): 19 # in the RPython program reads of 'os.environ[key]' are redirected here 20 result = r_getenv(key) 25 def setitem(self, obj, key, value): 26 # in the RPython program, 'os.environ[key] = value' is redirected here 27 r_putenv(key, value)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 TranslationContexttest_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 AppTestCpythonExtensionBaserweakref.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