[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 
implementation, can someone tell me where to look for it?

--
nosy: +beng94

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21328>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 on how to 
do that.

--
keywords: +patch
nosy: +beng94
Added file: http://bugs.python.org/file41789/find_lib.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21042>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 <rep...@bugs.python.org>
<http://bugs.python.org/issue26261>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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's place

I didn't fix the alphabetical order to keep the patch clean. If you find this 
patch good, I'll fix that as well if it's needed.

--
Added file: http://bugs.python.org/file41727/doc_exceptions_v1.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19225>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 well, if it's needed.

--
keywords: +patch
Added file: http://bugs.python.org/file41688/doc_exceptions.patch

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19225>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: +beng94

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21949>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 method raised an exception [...] Any 
exception, other than AssertionError or SkipTest, raised by this method will be 
considered an error rather than a test failure. This method will only be called 
if the setUp() succeeds, regardless of the outcome of the test method."

--
nosy: +beng94

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25687>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com