<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Objects/complexobject.c, branch 3.4</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>Issue #24802: Copy bytes-like objects to null-terminated buffers if necessary</title>
<updated>2015-11-07T02:32:21+00:00</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2015-11-07T02:32:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=eeb896c4116dd763efea45cb3c1b53257128f4e4'/>
<id>eeb896c4116dd763efea45cb3c1b53257128f4e4</id>
<content type='text'>
This avoids possible buffer overreads when int(), float(), compile(), exec()
and eval() are passed bytes-like objects. Similar code is removed from the
complex() constructor, where it was not reachable.

Patch by John Leitch, Serhiy Storchaka and Martin Panter.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This avoids possible buffer overreads when int(), float(), compile(), exec()
and eval() are passed bytes-like objects. Similar code is removed from the
complex() constructor, where it was not reachable.

Patch by John Leitch, Serhiy Storchaka and Martin Panter.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()</title>
<updated>2015-02-02T23:21:08+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-02-02T23:21:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=4fdb68491e8b2d044c9173babf625bbb815c39d1'/>
<id>4fdb68491e8b2d044c9173babf625bbb815c39d1</id>
<content type='text'>
and PyObject_AsWriteBuffer().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and PyObject_AsWriteBuffer().
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #22604: Fix assertion error in debug mode when dividing a complex number by (nan+0j).</title>
<updated>2014-10-10T21:49:32+00:00</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2014-10-10T21:49:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=9086f9260f1f48a231cba4e7123eb7ac8159ba40'/>
<id>9086f9260f1f48a231cba4e7123eb7ac8159ba40</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Silence expression result unused warnings with clang.</title>
<updated>2013-12-04T08:27:47+00:00</updated>
<author>
<name>Christian Heimes</name>
<email>christian@cheimes.de</email>
</author>
<published>2013-12-04T08:27:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d3afe781b15e47784273bbb82da6122bf7be999e'/>
<id>d3afe781b15e47784273bbb82da6122bf7be999e</id>
<content type='text'>
The PyObject_INIT() macros returns obj:

../cpython/Objects/methodobject.c:32:23: warning: expression result unused [-Wunused-value]
        PyObject_INIT(op, &amp;PyCFunction_Type);
                      ^~
../cpython/Include/objimpl.h:139:69: note: expanded from macro 'PyObject_INIT'
    ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) )
                                                                    ^
1 warning generated.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The PyObject_INIT() macros returns obj:

../cpython/Objects/methodobject.c:32:23: warning: expression result unused [-Wunused-value]
        PyObject_INIT(op, &amp;PyCFunction_Type);
                      ^~
../cpython/Include/objimpl.h:139:69: note: expanded from macro 'PyObject_INIT'
    ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) )
                                                                    ^
1 warning generated.
</pre>
</div>
</content>
</entry>
<entry>
<title>#17080: improve error message of float/complex when the wrong type is passed.</title>
<updated>2013-11-07T17:18:34+00:00</updated>
<author>
<name>Ezio Melotti</name>
<email>ezio.melotti@gmail.com</email>
</author>
<published>2013-11-07T17:18:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a5b9599538083468cffee3c052e15dd541c4bbd5'/>
<id>a5b9599538083468cffee3c052e15dd541c4bbd5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>#19068: merge with 3.3.</title>
<updated>2013-10-05T21:39:44+00:00</updated>
<author>
<name>Ezio Melotti</name>
<email>ezio.melotti@gmail.com</email>
</author>
<published>2013-10-05T21:39:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c1ae25471720fb0745da5ac02d20b28a14ad1469'/>
<id>c1ae25471720fb0745da5ac02d20b28a14ad1469</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>#19068: use imperative mood in complex object docstrings.  Patch by Marco Buttu.</title>
<updated>2013-10-05T21:39:18+00:00</updated>
<author>
<name>Ezio Melotti</name>
<email>ezio.melotti@gmail.com</email>
</author>
<published>2013-10-05T21:39:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=488d244e1ab9e50c5b7e83904897d8e068546086'/>
<id>488d244e1ab9e50c5b7e83904897d8e068546086</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #18722: Remove uses of the "register" keyword in C code.</title>
<updated>2013-08-13T18:18:52+00:00</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2013-08-13T18:18:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=9ed5f2726607c57c894af24159b6a7ccf660da7f'/>
<id>9ed5f2726607c57c894af24159b6a7ccf660da7f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Close #17694: Add minimum length to _PyUnicodeWriter</title>
<updated>2013-04-17T21:02:17+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2013-04-17T21:02:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8f674ccd6442fd4d415f2d9d1ad8b09c1b4f9f30'/>
<id>8f674ccd6442fd4d415f2d9d1ad8b09c1b4f9f30</id>
<content type='text'>
 * Add also min_char attribute to _PyUnicodeWriter structure (currently unused)
 * _PyUnicodeWriter_Init() has no more argument (except the writer itself):
   min_length and overallocate must be set explicitly
 * In error handlers, only enable overallocation if the replacement string
   is longer than 1 character
 * CJK decoders don't use overallocation anymore
 * Set min_length, instead of preallocating memory using
   _PyUnicodeWriter_Prepare(), in many decoders
 * _PyUnicode_DecodeUnicodeInternal() checks for integer overflow
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 * Add also min_char attribute to _PyUnicodeWriter structure (currently unused)
 * _PyUnicodeWriter_Init() has no more argument (except the writer itself):
   min_length and overallocate must be set explicitly
 * In error handlers, only enable overallocation if the replacement string
   is longer than 1 character
 * CJK decoders don't use overallocation anymore
 * Set min_length, instead of preallocating memory using
   _PyUnicodeWriter_Prepare(), in many decoders
 * _PyUnicode_DecodeUnicodeInternal() checks for integer overflow
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #16290: __complex__ must now always return an instance of complex.</title>
<updated>2012-11-14T17:08:31+00:00</updated>
<author>
<name>Mark Dickinson</name>
<email>mdickinson@enthought.com</email>
</author>
<published>2012-11-14T17:08:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d20fb8219554989f3ed901c144014d2f4c5a300a'/>
<id>d20fb8219554989f3ed901c144014d2f4c5a300a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
