New issue 2820: Py_ReprEnter and Py_ReprLeave not implemented
https://bitbucket.org/pypy/pypy/issues/2820/py_reprenter-and-py_reprleave-not

Hrvoje Nikšić:

The Python/C emulation does not currently include an implementation of 
PyRepr_Enter and PyRepr_Leave.

Our in-house extensions use them, so for the purpose of our PyPy evaluation I 
defined the following stubs in a header:

```
#!c

extern "C" {
inline Py_ssize_t Py_ReprEnter(PyObject *x) {
  return 0;
}
inline void Py_ReprLeave(PyObject *x) {
}
}
```

The functions should be straightforward to implement properly, perhaps simply 
by copying the CPython implementation. They have been present in the API for a 
very long time, but have been documented only at some point in Python 3.


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to