[pypy-commit] pypy default: Some more OO specific code
alex_gaynor
noreply at buildbot.pypy.org
Mon Jul 29 22:42:18 CEST 2013
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r65798:2f7eaa5b4466
Date: 2013-07-29 13:41 -0700
http://bitbucket.org/pypy/pypy/changeset/2f7eaa5b4466/
Log: Some more OO specific code
diff --git a/rpython/rlib/streamio.py b/rpython/rlib/streamio.py
--- a/rpython/rlib/streamio.py
+++ b/rpython/rlib/streamio.py
@@ -185,11 +185,8 @@
SetEndOfFile = rffi.llexternal('SetEndOfFile', [HANDLE], BOOL,
compilation_info=_eci)
- # HACK: These implementations are specific to MSVCRT and the C backend.
- # When generating on CLI or JVM, these are patched out.
- # See PyPyTarget.target() in targetpypystandalone.py
def _setfd_binary(fd):
- #Allow this to succeed on invalid fd's
+ # Allow this to succeed on invalid fd's
if rposix.is_valid_fd(fd):
_setmode(fd, os.O_BINARY)
diff --git a/rpython/rtyper/rtyper.py b/rpython/rtyper/rtyper.py
--- a/rpython/rtyper/rtyper.py
+++ b/rpython/rtyper/rtyper.py
@@ -58,7 +58,6 @@
self.classdef_to_pytypeobject = {}
self.concrete_calltables = {}
self.class_pbc_attributes = {}
- self.oo_meth_impls = {}
self.cache_dummy_values = {}
self.lltype2vtable = {}
self.typererrors = []
diff --git a/rpython/translator/backendopt/test/test_removenoops.py b/rpython/translator/backendopt/test/test_removenoops.py
--- a/rpython/translator/backendopt/test/test_removenoops.py
+++ b/rpython/translator/backendopt/test/test_removenoops.py
@@ -97,9 +97,8 @@
def test_remove_unaryops():
- # We really want to use remove_unaryops for things like ooupcast and
- # oodowncast in dynamically typed languages, but it's easier to test
- # it with operations on ints here.
+ # We really want to use remove_unaryops for more complex operations, but
+ # it's easier to test it with operations on ints here.
def f(x):
i = llop.int_invert(lltype.Signed, x)
i = llop.int_add(lltype.Signed, x, 1)
More information about the pypy-commit
mailing list