[issue9783] _elementtree.c warnings under 64-bit Windows
Martin v. Löwis
report at bugs.python.org
Sun Sep 12 13:37:53 CEST 2010
Martin v. Löwis <martin at v.loewis.de> added the comment:
Instead of
PyLong_FromLong((Py_uintptr_t) self);
use
PyLong_FromVoidPtr(self);
For the others, I suggest making length and allocated Py_ssize_t; this is likely a pervasive change. Of course, very few people will currently run into XML documents where some element has more than 2**31 children... You would need several TiB of main memory to represent it using ElementTree.
Fredrik, please indicate whether it is ok to make this kind of change, or whether it would need your explicit approval.
----------
nosy: +loewis
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9783>
_______________________________________
More information about the Python-bugs-list
mailing list