[issue1075356] exceeding obscure weakproxy bug

Matthew Barnett report at bugs.python.org
Wed Dec 19 23:53:19 CET 2012


Matthew Barnett added the comment:

The patch "issue1075356.patch" is my attempt to fix this bug.

'PyArg_ParseTuple', etc, eventually call 'convertsimple'. What this patch does is to insert some code at the start of 'convertsimple' that checks whether the argument is a weakref proxy and, if it is, fetch the object to which the proxy refers. From then on it's working with the true argument, so it'll work just like would have done if it been given the proxied object itself originally.

----------
keywords: +patch
nosy: +mrabarnett
versions: +Python 3.3
Added file: http://bugs.python.org/file28370/issue1075356.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1075356>
_______________________________________


More information about the Python-bugs-list mailing list