[pypy-svn] r78854 - pypy/branch/fast-forward/pypy/module/cpyext
afa at codespeak.net
afa at codespeak.net
Mon Nov 8 01:39:24 CET 2010
Author: afa
Date: Mon Nov 8 01:39:22 2010
New Revision: 78854
Modified:
pypy/branch/fast-forward/pypy/module/cpyext/funcobject.py
Log:
Skip this function for now, don't know how to make it translate.
Modified: pypy/branch/fast-forward/pypy/module/cpyext/funcobject.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/cpyext/funcobject.py (original)
+++ pypy/branch/fast-forward/pypy/module/cpyext/funcobject.py Mon Nov 8 01:39:22 2010
@@ -4,6 +4,7 @@
cpython_api, bootstrap_function, cpython_struct, build_type_checkers)
from pypy.module.cpyext.pyobject import (
PyObject, make_ref, from_ref, Py_DecRef, make_typedescr, borrow_from)
+from pypy.interpreter.error import OperationError
from pypy.interpreter.function import Function, Method
from pypy.interpreter.pycode import PyCode
@@ -67,13 +68,17 @@
@cpython_api([CONST_STRING, CONST_STRING, rffi.INT_real], PyObject)
def PyCode_NewEmpty(space, filename, funcname, firstlineno):
"""Creates a new empty code object with the specified source location."""
+ raise OperationError(space.w_NotImplementedError, space.wrap(
+ "PyCode_NewEmpty"))
+ # XXX I keep getting a "TooLateForChange" around the annotation of
+ # the consts variable
return space.wrap(PyCode(space,
argcount=0,
nlocals=0,
stacksize=0,
flags=0,
code="",
- consts=[],
+ consts=list([]),
names=[],
varnames=[],
filename=rffi.charp2str(filename),
More information about the Pypy-commit
mailing list