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

2016-02-04 Thread Gedai Tamás Bence
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 implem

[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

2016-02-03 Thread Gedai Tamás Bence
Gedai Tamás Bence added the comment: Added a small patch that solves this issue on Ubuntu 15.10. Produces output like: /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libbz2.so.1.0 I'd be glad to add some test cases if someone can give me some tips o

[issue26261] NamedTemporaryFile documentation is vague about the `name` attribute

2016-02-02 Thread Gedai Tamás Bence
Gedai Tamás Bence added the comment: Antti, would you like to provide a patch? If you don't want to work on it, I can give it a try. -- nosy: +beng94 ___ Python tracker <http://bugs.python.org/is

[issue19225] lack of PyExc_BufferError doc

2016-01-27 Thread Gedai Tamás Bence
Gedai Tamás Bence added the comment: Thanks Martin for the review! I tried to fix the problems, I hope now it'll be good. Changes: - fixed uppercase 'B' - removed VMSError - moved notes after versionchanged - added two indices for the different tables * put BufferError in it&#x

[issue21949] Document the Py_SIZE() macro.

2016-01-22 Thread Gedai Tamás Bence
Gedai Tamás Bence added the comment: Py_SIZE: https://docs.python.org/3.5/c-api/structures.html#c.Py_SIZE PyList_New: https://docs.python.org/3.5/c-api/list.html#c.PyList_New I think they're documented now, so I guess the issue can be closed. -- nosy: +b

[issue19225] lack of PyExc_BufferError doc

2016-01-22 Thread Gedai Tamás Bence
Gedai Tamás Bence added the comment: I've created a new table for warnings and added the missing exceptions to the exceptions table. I did not find a link for VMSError, but I added it to the table. Note that the exceptions table is not absolutely in alphabetical order, I can fix it as

[issue19225] lack of PyExc_BufferError doc

2016-01-21 Thread Gedai Tamás Bence
Gedai Tamás Bence added the comment: Let me try to solve this issue. Will be back in 4 days. -- nosy: +beng94 ___ Python tracker <http://bugs.python.org/issue19

[issue25687] Error during test case and tearDown

2016-01-20 Thread Gedai Tamás Bence
Gedai Tamás Bence added the comment: I think it's in the docs, although if you don't find it sufficient I might try to update it. `tearDown method <https://docs.python.org/3.5/library/unittest.html#unittest.TestCase.tearDown>`_ "This is called even if the test metho