[pypy-issue] [issue1357] lxml not returning the same proxy object.

Simon Sapin tracker at bugs.pypy.org
Wed Jan 2 12:04:26 CET 2013


Simon Sapin <simon.sapin at kozea.fr> added the comment:

Might be relevant:
https://github.com/lxml/lxml/blob/e01a81740c77/src/lxml/proxy.pxi#L7

# In PyPy, we store weak references instead of borrowed back-pointer
# references as borrowed references cannot be long-lived in its
# compatibility layer cpyext. Since we can't know when the object dies
# (and even the weak-ref callback won't tell us that), we double check
# on access that the object really is still alive and delete the
# weak-ref if it isn't.

Also: http://www.mail-archive.com/pypy-dev@python.org/msg02019.html

----------
status: unread -> chatting

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1357>
________________________________________


More information about the pypy-issue mailing list