<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/weakrefobject.c, branch 3.7</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/weakrefobject.c?h=3.7</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/weakrefobject.c?h=3.7'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2019-10-11T20:28:49Z</updated>
<entry>
<title>[3.7] bpo-38395: Fix ownership in weakref.proxy methods (GH-16632) (GH-16663)</title>
<updated>2019-10-11T20:28:49Z</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2019-10-11T20:28:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=193366e25c4f84a58d2f6c6c577fd9f0143dc6e1'/>
<id>urn:sha1:193366e25c4f84a58d2f6c6c577fd9f0143dc6e1</id>
<content type='text'>
The implementation of weakref.proxy's methods call back into the Python
API using a borrowed references of the weakly referenced object
(acquired via PyWeakref_GET_OBJECT). This API call may delete the last
reference to the object (either directly or via GC), leaving a dangling
pointer, which can be subsequently dereferenced.

To fix this, claim a temporary ownership of the referenced object when
calling the appropriate method. Some functions because at the moment they
do not need to access the borrowed referent, but to protect against
future changes to these functions, ownership need to be fixed in
all potentially affected methods..
(cherry picked from commit 10cd00a9e3c22af37c748ea5a417f6fb66601e21)

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;





https://bugs.python.org/issue38395</content>
</entry>
<entry>
<title>bpo-30592: Fixed error messages for some builtins. (#1996)</title>
<updated>2017-06-08T11:41:19Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-06-08T11:41:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6cca5c8459cc439cb050010ffa762a03859d3051'/>
<id>urn:sha1:6cca5c8459cc439cb050010ffa762a03859d3051</id>
<content type='text'>
Error messages when pass keyword arguments to some builtins that
don't support keyword arguments contained double parenthesis: "()()".
The regression was introduced by bpo-30534.</content>
</entry>
<entry>
<title>bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref objects (#128)</title>
<updated>2017-02-20T04:25:16Z</updated>
<author>
<name>Xiang Zhang</name>
<email>angwerzx@126.com</email>
</author>
<published>2017-02-20T04:25:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d0e8212ed70445cc3d48b0d4ae7c9cb480004010'/>
<id>urn:sha1:d0e8212ed70445cc3d48b0d4ae7c9cb480004010</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-29548: Fix some inefficient call API usage (GH-97)</title>
<updated>2017-02-16T00:26:01Z</updated>
<author>
<name>INADA Naoki</name>
<email>methane@users.noreply.github.com</email>
</author>
<published>2017-02-16T00:26:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=72dccde884d89586b0cafd990675b7e21720a81f'/>
<id>urn:sha1:72dccde884d89586b0cafd990675b7e21720a81f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Backed out changeset b9c9691c72c5</title>
<updated>2016-12-04T21:59:09Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2016-12-04T21:59:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=de4ae3d4869e88dda8bfbad24880cb398160a7a0'/>
<id>urn:sha1:de4ae3d4869e88dda8bfbad24880cb398160a7a0</id>
<content type='text'>
Issue #28858: The change b9c9691c72c5 introduced a regression. It seems like
_PyObject_CallArg1() uses more stack memory than
PyObject_CallFunctionObjArgs().
</content>
</entry>
<entry>
<title>Replace PyObject_CallFunctionObjArgs() with fastcall</title>
<updated>2016-12-01T13:43:22Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2016-12-01T13:43:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=27580c1fb5e8cb756304f523006d832d2e3532e7'/>
<id>urn:sha1:27580c1fb5e8cb756304f523006d832d2e3532e7</id>
<content type='text'>
* PyObject_CallFunctionObjArgs(func, NULL) =&gt; _PyObject_CallNoArg(func)
* PyObject_CallFunctionObjArgs(func, arg, NULL) =&gt; _PyObject_CallArg1(func, arg)

PyObject_CallFunctionObjArgs() allocates 40 bytes on the C stack and requires
extra work to "parse" C arguments to build a C array of PyObject*.

_PyObject_CallNoArg() and _PyObject_CallArg1() are simpler and don't allocate
memory on the C stack.

This change is part of the fastcall project. The change on listsort() is
related to the issue #23507.
</content>
</entry>
<entry>
<title>Avoid calling functions with an empty string as format string</title>
<updated>2016-09-06T01:16:01Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2016-09-06T01:16:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3466bde1cc113750450ffed028cc6fc7c95faedd'/>
<id>urn:sha1:3466bde1cc113750450ffed028cc6fc7c95faedd</id>
<content type='text'>
Directly pass NULL rather than an empty string.
</content>
</entry>
<entry>
<title>Issue #17765: weakref.ref() no longer silently ignores keyword arguments.</title>
<updated>2016-05-07T12:43:59Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-05-07T12:43:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=17e22959a444ee44c9462f3b66610950a8bc5a2b'/>
<id>urn:sha1:17e22959a444ee44c9462f3b66610950a8bc5a2b</id>
<content type='text'>
Patch by Georg Brandl.
</content>
</entry>
<entry>
<title>Issue #17765: weakref.ref() no longer silently ignores keyword arguments.</title>
<updated>2016-05-07T12:41:09Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-05-07T12:41:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=21eb48764c618eede0405ef840eadf1b03ff9b00'/>
<id>urn:sha1:21eb48764c618eede0405ef840eadf1b03ff9b00</id>
<content type='text'>
Patch by Georg Brandl.
</content>
</entry>
<entry>
<title>Issue #25923: Added more const qualifiers to signatures of static and private functions.</title>
<updated>2015-12-25T18:01:53Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-12-25T18:01:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ef1585eb9a488ae8ce3ff057f43a7048b941cc1c'/>
<id>urn:sha1:ef1585eb9a488ae8ce3ff057f43a7048b941cc1c</id>
<content type='text'>
</content>
</entry>
</feed>
