[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Sven Berkvens-Matthijsse
Sven Berkvens-Matthijsse added the comment: (Please excuse my horrible spelling in my last message, I'm apparently more tired than I care to admit) -- ___ Python tracker <http://bugs.python.org/is

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Sven Berkvens-Matthijsse
Sven Berkvens-Matthijsse added the comment: Eryk, could the tests in the path file that you posted regarding int() and float() be incorrect in the sense that buffer(...)[a:b] returns a str() and not another buffer() (and will thus always be NUL terminated and not exhibit the problem, whether

[issue25678] int() from a buffer reads past the buffer boundaries

2015-11-20 Thread Sven Berkvens-Matthijsse
New submission from Sven Berkvens-Matthijsse: Calling int() or long() on a buffer() object in Python 2.7 does not do the right thing. The following code snippet: buf = buffer("123test", 1, 2) print buf print int(buf) does not do what I would expect (that it print "23"

[issue20521] [PATCH] Cleanup for "dis" module documentation

2014-02-05 Thread Sven Berkvens-Matthijsse
New submission from Sven Berkvens-Matthijsse: The documentation for the "dis" module has a wrong opcode name in it (POP_STACK instead of POP_TOP). Furthermore, the patch fixes inconsistent use of markers for code and opcodes. -- assignee: docs@python components: Documenta