100+ results results for 'rpython repo:pypy/pypy' (2960 ms)
89 TaskDlgEditSketch.h 90 ViewProviderPython.cpp 91 ViewProviderPython.hfuture.tex https://github.com/khskrede/mehh.git | LaTeX | 74 lines
2 3\subsection{Rewrite the deserializer to proper RPython} 4 4 5The deserializer is currently not written in proper RPython. 6Converting the code to RPython will allow it to be compiled to a JIT interpreter by 6Converting the code to RPython will allow it to be compiled to a JIT interpreter by 7the RPython toolchain. This should not be a very big task, but it requires understanding 8of the RPython coding style. There are also restrictions on how one may use the PyPy parserPythonMonitor.cpp https://github.com/xbmc/xbmc-rbp.git | C++ | 137 lines
82 m_refs = 1; 83 g_pythonParser.RegisterPythonMonitorCallBack(this); 84} 98{ 99 g_pythonParser.UnregisterPythonMonitorCallBack(this); 100}CMakeLists.txt https://github.com/osh/gnuradio.old.git | CMake | 114 lines
22######################################################################## 23include(GrPython) 24lldict.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_countbuiltin.py https://github.com/lalitjsraks/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 ExternalCompilationInfoeric4.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 4acp.vim https://github.com/Alan0521/vimfiles.git | 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 . ',}$' 126endfunctionbuild_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'])"test_list.py https://github.com/lalitjsraks/pypy.git | Python | 232 lines
1from pypy.rpython.lltypesystem import lltype 2from pypy.translator.unsimplify import varoftypeDarwinUtils.h https://github.com/energy6/xbmc.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);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_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)libclang-v100-dyn.ps1 https://gitlab.com/f3822/qt5 | Powershell | 50 lines
8$libclang_version="10.0" 9Write-Output "libClang for QtForPython = $libclang_version" >> ~/versions.txt 10CMakeLists.txt https://github.com/benreynwar/gnuradio-old.git | CMake | 60 lines
22######################################################################## 23include(GrPython) 24include(GrSwig)linuxprivchecker.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'CMakeLists.txt https://github.com/trondeau/gnuradio-old.git | CMake | 45 lines
19 20include(GrPython) 21QsciLexerPython.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 }CMakeLists.txt https://github.com/finetjul/Slicer.git | CMake | 95 lines
25 qSlicerLoadableModuleWithPythonTest.cxx 26 qSlicerPythonManagerWithoutApplicationTest.cxx 27 qSlicerScriptedLoadableModuleTest.cxx 40 qSlicerLoadableModuleWithPythonTest.cxx 41 qSlicerPythonManagerWithoutApplicationTest.cxx 42 qSlicerScriptedLoadableModuleTest.cxx 74 simple_test( qSlicerLoadableModuleWithPythonTest ) 75 simple_test( qSlicerPythonManagerWithoutApplicationTest ) 76 simple_test( qSlicerScriptedLoadableModuleTest )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 7interp_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(Makefile https://github.com/glk/freebsd-head.git | Makefile | 56 lines
48 ScriptInterpreterNone.cpp \ 49 ScriptInterpreterPython.cpp 50test_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):CMakeLists.txt https://github.com/barche/coolfluid3.git | CMake | 55 lines
4 BoostPython.hpp 5 ComponentFilterPython.hpp 6 ComponentFilterPython.cppparser.py https://github.com/khskrede/mehh.git | Python | 429 lines
2from pypy.rlib.parsing.ebnfparse import parse_ebnf, make_parse_function 3from pypy.rlib.parsing.tree import RPythonVisitor, Nonterminal, Node, Symbol, VisitError 4import sys 86 87class AST(RPythonVisitor): 88whatsnew-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-refsexception.py https://github.com/woodrow/pyoac.git | Python | 51 lines
1import py 2from pypy.rpython.test.test_exception \ 3 import BaseTestException as RBaseTestExceptiontest_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_countCMakeLists.txt https://github.com/Slicer/Slicer.git | CMake | 398 lines
346 list(APPEND KIT_SRCS 347 qSlicerPythonManager.cxx 348 qSlicerPythonManager.h 352 list(APPEND KIT_MOC_SRCS 353 qSlicerPythonManager.h 354 )README.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 5CMakeLists.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.hXBPython.h https://github.com/dahool84/xbmc.git | C Header | 143 lines
60 virtual void Announce(ANNOUNCEMENT::AnnouncementFlag flag, const char *sender, const char *message, const CVariant &data); 61 void RegisterPythonPlayerCallBack(IPlayerCallback* pCallback); 62 void UnregisterPythonPlayerCallBack(IPlayerCallback* pCallback); 62 void UnregisterPythonPlayerCallBack(IPlayerCallback* pCallback); 63 void RegisterPythonMonitorCallBack(CPythonMonitor* pCallback); 64 void UnregisterPythonMonitorCallBack(CPythonMonitor* pCallback);test_parser.py https://github.com/jwal/python-tutorial.git | Python | 338 lines
5from pypy.rlib.parsing.parsing import ParseError, Rule 6from pypy.rlib.parsing.tree import RPythonVisitor 7from pypy.lang.js.jsobj import W_Object, global_context, ThrowException, empty_context 49 50class CountingVisitor(RPythonVisitor): 51 def __init__(self): 76 77class IntEvaluationVisitor(RPythonVisitor): 78 def general_symbol_visit(self, node):test_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 lltypefixapplepython23.py https://bitbucket.org/glix/python.git | Python | 130 lines
27 'CC=\t\tgcc\n', 28 'CC=\t\t/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/config/PantherPythonFix/run-gcc\n' 29 ),( 30 'CXX=\t\tc++\n', 31 'CXX=\t\t/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/config/PantherPythonFix/run-g++\n' 32)) 33 34GCC_SCRIPT='/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/config/PantherPythonFix/run-gcc' 35GXX_SCRIPT='/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/config/PantherPythonFix/run-g++'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.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 gildatabase.py https://github.com/lalitjsraks/pypy.git | Python | 160 lines
10from pypy.translator.cli.cts import types 11from pypy.rpython.ootypesystem import ootype 12from pypy.rpython.ootypesystem.module import ll_os, ll_math 12from pypy.rpython.ootypesystem.module import ll_os, ll_math 13from pypy.rpython.ootypesystem.rtupletype import TUPLE_TYPE 14from pypy.translator.cli import dotnetrcoroutine.py https://github.com/yasirs/pypy.git | Python | 352 lines
44class FrameChain(object): 45 """Greenlet-based emulation of the primitive rstack 'frames' of RPython""" 46 64 def __repr__(self): 65 "NOT_RPYTHON" 66 # for debugging only 165 def __repr__(self): 166 'NOT_RPYTHON' 167 # just for debuggingstoresink.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 simplifyctypeenum.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 pyimplementation.tex https://github.com/khskrede/mehh.git | LaTeX | 336 lines
26"main.py" is the entry point of the compilation system. It defines 27the target for the RPython translation tool, imports the \emph{builtin} 28functionality and the main function begins the interpretation of the 231 232The resulting parser is a base class called \emph{RPythonVisitor}. The 233RPythonVisitortest_posix.py https://github.com/yasirs/pypy.git | Python | 223 lines
1import py 2from pypy.rpython.test.tool import BaseRtypingTest, LLRtypeMixin, OORtypeMixin 3from pypy.tool.udir import udir 58 import py; py.test.skip("llinterp does not like tuple returns") 59 from pypy.rpython.test.test_llinterp import interpret 60 times = interpret(lambda: posix.times(), ()) 188 def test_os_wstar(self): 189 from pypy.rpython.module.ll_os import RegisterOs 190 for name in RegisterOs.w_star:LanguageHook.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://github.com/jdhardy/ironpython.git | 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 14LanguageHook.cpp https://github.com/energy6/xbmc.git | C++ | 194 lines
159 160 void LanguageHook::RegisterPlayerCallback(IPlayerCallback* player) { TRACE; g_pythonParser.RegisterPythonPlayerCallBack(player); } 161 void LanguageHook::UnregisterPlayerCallback(IPlayerCallback* player) { TRACE; g_pythonParser.UnregisterPythonPlayerCallBack(player); } 161 void LanguageHook::UnregisterPlayerCallback(IPlayerCallback* player) { TRACE; g_pythonParser.UnregisterPythonPlayerCallBack(player); } 162 void LanguageHook::RegisterMonitorCallback(XBMCAddon::xbmc::Monitor* monitor) { TRACE; g_pythonParser.RegisterPythonMonitorCallBack(monitor); } 163 void LanguageHook::UnregisterMonitorCallback(XBMCAddon::xbmc::Monitor* monitor) { TRACE; g_pythonParser.UnregisterPythonMonitorCallBack(monitor); }gestures.py https://github.com/astory/RankPanda.git | Python | 310 lines
5#By Daniel Pozmanter 6#drpython@bluebottle.com 7lexers.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 162eval.py https://github.com/lalitjsraks/pypy.git | Python | 132 lines
1from pypy.interpreter.error import OperationError 2from pypy.rpython.lltypesystem import rffi, lltype 3from pypy.module.cpyext.api import (acp.vim https://github.com/Alan0521/vimfiles.git | 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)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) 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.pypy3-2.4.0-libressl.patch https://gitlab.com/kogaion/portage | Patch | 187 lines
10 rpython/rlib/ropenssl.py | 6 ++++- 11 rpython/rtyper/tool/rffi_platform.py | 12 ++++++--- 12 rpython/rtyper/tool/test/test_rffi_platform.py | 24 +++++++++++++++++- 85 86diff --git a/rpython/rlib/ropenssl.py b/rpython/rlib/ropenssl.py 87index c36779d..6fe45d0 100644 87index c36779d..6fe45d0 100644 88--- a/rpython/rlib/ropenssl.py 89+++ b/rpython/rlib/ropenssl.py 109 ssl_external('TLSv1_method', [], SSL_METHOD) 110diff --git a/rpython/rtyper/tool/rffi_platform.py b/rpython/rtyper/tool/rffi_platform.py 111index 1760877..1d56c20 100755 144 145diff --git a/rpython/rtyper/tool/test/test_rffi_platform.py b/rpython/rtyper/tool/test/test_rffi_platform.py 146index bfa069e..4feae87 100644transform.py https://github.com/lalitjsraks/pypy.git | Python | 273 lines
13from pypy.rlib.rstack import stack_check 14from pypy.rpython.lltypesystem import lltype 15debug.py https://github.com/lalitjsraks/pypy.git | Python | 286 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 133 def specialize_call(self, hop): 134 from pypy.rpython.lltypesystem import lltype 135 t = hop.rtyper.annotator.translator 156 from pypy.annotation import model as annmodel 157 from pypy.rpython.lltypesystem import lltype 158 assert s_RESTYPE.is_constant()CMakeLists.txt https://github.com/poes-weather/gr-poes-weather.git | CMake | 43 lines
22######################################################################## 23include(GrPython) 24if(NOT PYTHONINTERP_FOUND)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 63IronPythonParameterInfo.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#endifCMakeLists.txt https://bitbucket.org/mituq/muq.git | CMake | 60 lines
38 39 ../python/MeshParameterPython.cpp 40 ../python/KernelModelPython.cpptest_objectmodel.py https://github.com/woodrow/pyoac.git | Python | 319 lines
3from pypy.translator.translator import TranslationContext, graphof 4from pypy.rpython.test.tool import BaseRtypingTest, LLRtypeMixin, OORtypeMixin 5from pypy.conftest import optionlonglong2float.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 197track8.s https://github.com/lalitjsraks/pypy.git | Assembly | 217 lines
52.L1802: 53 movl pypy_g_pypy_rpython_memory_gc_semispace_SemiSpaceGC+12, %edx 54 movl pypy_g_pypy_rpython_memory_gc_semispace_SemiSpaceGC+80, %ecx 62 movl %edx, %edi 63 movl $pypy_g_pypy_rpython_memory_gc_semispace_SemiSpaceGC, %ebx 64 leal 8(%edx), %edx 175.L1817: 176 movl $pypy_g_pypy_rpython_memory_gc_semispace_SemiSpaceGC, (%esp) 177 movl $8, %ebx 205.L1822: 206 movl pypy_g_pypy_rpython_memory_gc_semispace_SemiSpaceGC+12, %edx 207 jmp .L1819classes.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>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 */Module.cpp https://github.com/jeffora/RuntimeCompiledCPlusPlus.git | C++ | 282 lines
48 49void RegisterPythonInterfaces(); 50void RegisterPythonConverters(); 53{ 54 RegisterPythonInterfaces(); 55 RegisterPythonConverters();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 """CMakeLists.txt https://github.com/thewtex/ITK.git | CMake | 15 lines
1if(ITK_WRAP_PYTHON) 2 itk_python_add_test(NAME itkGPUNeighborhoodOperatorImageFilterPythonTest2D 3 TEST_DRIVER_ARGS 8 9 itk_python_add_test(NAME itkGPUNeighborhoodOperatorImageFilterPythonTest3D 10 TEST_DRIVER_ARGSCMakeLists.txt https://github.com/kmorel/ParaView.git | CMake | 159 lines
35 FOREACH (tfile ${SMSTATE_FILES}) 36 ADD_TEST(NAME "${tfile}-ServerManagerPython" 37 COMMAND ${PVPYTHON_COMMAND} 46 # state for regression testing. 47 ADD_TEST(NAME "LoadSave-ServerManagerPython" 48 COMMAND ${PVPYTHON_COMMAND} 76 FOREACH (tfile ${PY_TESTS}) 77 ADD_TEST(NAME "${tfile}-ServerManagerPython" 78 COMMAND ${PVPYTHON_COMMAND} 100 FOREACH (tfile ${PY_TESTS_NO_BASELINE}) 101 ADD_TEST(NAME "${tfile}-ServerManagerPython" 102 COMMAND ${PVPYTHON_COMMAND}support.py https://github.com/woodrow/pyoac.git | Python | 94 lines
1from pypy.rpython.lltypesystem import lltype 2from pypy.rpython.ootypesystem import ootype 2from pypy.rpython.ootypesystem import ootype 3from pypy.rpython.lltypesystem.lltype import \ 4 GcStruct, Signed, Array, Char, Ptr, malloc, GcArray 4 GcStruct, Signed, Array, Char, Ptr, malloc, GcArray 5from pypy.rpython.rlist import ll_append 6from pypy.rpython.lltypesystem.rlist import ll_newlist, ListRepr,\ 7 ll_getitem_fast 8from pypy.rpython.lltypesystem.rstr import string_repr 9from pypy.rpython.lltypesystem.rdict import ll_newdict, DictRepr, dum_items,\ 10 ll_kvi, dum_keys, ll_dict_getitem, ll_dict_setitem 11from pypy.rpython.lltypesystem.rstr import StringRepr 12from pypy.rpython.lltypesystem.rtuple import TupleRepr 21 def to_rstr(s): 22 from pypy.rpython.lltypesystem.rstr import STR, mallocstr 23 if s is None: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