[issue21328] Resize doesn't change reported length on create_string_buffer()

Gedai Tamás Bence report at bugs.python.org
Thu Feb 4 11:38:45 EST 2016


Gedai Tamás Bence added the comment:

I found out that if you modify Modules/_cpython/callproc.c resize function in a way that you set the obj->b_length to size, the len function returns the correct value.

To be able to provide a proper patch, I'd like to look into len's implementation, can someone tell me where to look for it?

----------
nosy: +beng94

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


More information about the Python-bugs-list mailing list