<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Objects, branch benjamin-interp-initialize</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>Fix misleading mentions of tp_size in comments (GH-9093)</title>
<updated>2018-09-10T16:46:08+00:00</updated>
<author>
<name>Peter Eisentraut</name>
<email>peter@eisentraut.org</email>
</author>
<published>2018-09-10T16:46:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=0e0bc4e221f592f305d335faf5f8046484eb9238'/>
<id>0e0bc4e221f592f305d335faf5f8046484eb9238</id>
<content type='text'>
Many type object initializations labeled a field "tp_size" in the
comment, but the name of that field is tp_basicsize.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Many type object initializations labeled a field "tp_size" in the
comment, but the name of that field is tp_basicsize.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34595: Add %T format to PyUnicode_FromFormatV() (GH-9080)</title>
<updated>2018-09-07T16:00:58+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-09-07T16:00:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=886483e2b9bbabf60ab769683269b873381dd5ee'/>
<id>886483e2b9bbabf60ab769683269b873381dd5ee</id>
<content type='text'>
* Add %T format to PyUnicode_FromFormatV(), and so to
  PyUnicode_FromFormat() and PyErr_Format(), to format an object type
  name: equivalent to "%s" with Py_TYPE(obj)-&gt;tp_name.
* Replace Py_TYPE(obj)-&gt;tp_name with %T format in unicodeobject.c.
* Add unit test on %T format.
* Rename unicode_fromformat_write_cstr() to
  unicode_fromformat_write_utf8(), to make the intent more explicit.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add %T format to PyUnicode_FromFormatV(), and so to
  PyUnicode_FromFormat() and PyErr_Format(), to format an object type
  name: equivalent to "%s" with Py_TYPE(obj)-&gt;tp_name.
* Replace Py_TYPE(obj)-&gt;tp_name with %T format in unicodeobject.c.
* Add unit test on %T format.
* Rename unicode_fromformat_write_cstr() to
  unicode_fromformat_write_utf8(), to make the intent more explicit.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-25750: fix refcounts in type_getattro() (GH-6118)</title>
<updated>2018-09-07T07:37:00+00:00</updated>
<author>
<name>jdemeyer</name>
<email>jdemeyer@cage.ugent.be</email>
</author>
<published>2018-09-07T07:37:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=8f735485acf2e35a75d2fa019feb8f905598c4e5'/>
<id>8f735485acf2e35a75d2fa019feb8f905598c4e5</id>
<content type='text'>
When calling tp_descr_get(self, obj, type), make sure that
we own a strong reference to "self".</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When calling tp_descr_get(self, obj, type), make sure that
we own a strong reference to "self".</pre>
</div>
</content>
</entry>
<entry>
<title>closes bpo-34599: Improve performance of _Py_bytes_capitalize(). (GH-9083)</title>
<updated>2018-09-07T04:54:49+00:00</updated>
<author>
<name>Sergey Fedoseev</name>
<email>fedoseev.sergey@gmail.com</email>
</author>
<published>2018-09-07T04:54:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=593bb30e82eded7f2ec02f7d1aa49742e6962113'/>
<id>593bb30e82eded7f2ec02f7d1aa49742e6962113</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34523: Support surrogatepass in locale codecs (GH-8995)</title>
<updated>2018-08-29T20:21:32+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-08-29T20:21:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=3d4226a832cabc630402589cc671cc4035d504e5'/>
<id>3d4226a832cabc630402589cc671cc4035d504e5</id>
<content type='text'>
Add support for the "surrogatepass" error handler in
PyUnicode_DecodeFSDefault() and PyUnicode_EncodeFSDefault()
for the UTF-8 encoding.

Changes:

* _Py_DecodeUTF8Ex() and _Py_EncodeUTF8Ex() now support the
  surrogatepass error handler (_Py_ERROR_SURROGATEPASS).
* _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx() now use
  the _Py_error_handler enum instead of "int surrogateescape" to pass
  the error handler. These functions now return -3 if the error
  handler is unknown.
* Add unit tests on _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx()
  in test_codecs.
* Rename get_error_handler() to _Py_GetErrorHandler() and expose it
  as a private function.
* _freeze_importlib doesn't need config.filesystem_errors="strict"
  workaround anymore.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support for the "surrogatepass" error handler in
PyUnicode_DecodeFSDefault() and PyUnicode_EncodeFSDefault()
for the UTF-8 encoding.

Changes:

* _Py_DecodeUTF8Ex() and _Py_EncodeUTF8Ex() now support the
  surrogatepass error handler (_Py_ERROR_SURROGATEPASS).
* _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx() now use
  the _Py_error_handler enum instead of "int surrogateescape" to pass
  the error handler. These functions now return -3 if the error
  handler is unknown.
* Add unit tests on _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx()
  in test_codecs.
* Rename get_error_handler() to _Py_GetErrorHandler() and expose it
  as a private function.
* _freeze_importlib doesn't need config.filesystem_errors="strict"
  workaround anymore.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34523: Add _PyCoreConfig.filesystem_encoding (GH-8963)</title>
<updated>2018-08-29T11:25:36+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-08-29T11:25:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=b2457efc78b74a1d6d1b77d11a939e886b8a4e2c'/>
<id>b2457efc78b74a1d6d1b77d11a939e886b8a4e2c</id>
<content type='text'>
_PyCoreConfig_Read() is now responsible to choose the filesystem
encoding and error handler. Using Py_Main(), the encoding is now
chosen even before calling Py_Initialize().

_PyCoreConfig.filesystem_encoding is now the reference, instead of
Py_FileSystemDefaultEncoding, for the Python filesystem encoding.

Changes:

* Add filesystem_encoding and filesystem_errors to _PyCoreConfig
* _PyCoreConfig_Read() now reads the locale encoding for the file
  system encoding.
* PyUnicode_EncodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize()
  now use the interpreter configuration rather than
  Py_FileSystemDefaultEncoding and Py_FileSystemDefaultEncodeErrors
  global configuration variables.
* Add _Py_SetFileSystemEncoding() and _Py_ClearFileSystemEncoding()
  private functions to only modify Py_FileSystemDefaultEncoding and
  Py_FileSystemDefaultEncodeErrors in coreconfig.c.
* _Py_CoerceLegacyLocale() now takes an int rather than
  _PyCoreConfig for the warning.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
_PyCoreConfig_Read() is now responsible to choose the filesystem
encoding and error handler. Using Py_Main(), the encoding is now
chosen even before calling Py_Initialize().

_PyCoreConfig.filesystem_encoding is now the reference, instead of
Py_FileSystemDefaultEncoding, for the Python filesystem encoding.

Changes:

* Add filesystem_encoding and filesystem_errors to _PyCoreConfig
* _PyCoreConfig_Read() now reads the locale encoding for the file
  system encoding.
* PyUnicode_EncodeFSDefault() and PyUnicode_DecodeFSDefaultAndSize()
  now use the interpreter configuration rather than
  Py_FileSystemDefaultEncoding and Py_FileSystemDefaultEncodeErrors
  global configuration variables.
* Add _Py_SetFileSystemEncoding() and _Py_ClearFileSystemEncoding()
  private functions to only modify Py_FileSystemDefaultEncoding and
  Py_FileSystemDefaultEncodeErrors in coreconfig.c.
* _Py_CoerceLegacyLocale() now takes an int rather than
  _PyCoreConfig for the warning.</pre>
</div>
</content>
</entry>
<entry>
<title>closes bpo-34504: Remove the useless NULL check in PySequence_Check(). (GH-8935)</title>
<updated>2018-08-25T23:52:27+00:00</updated>
<author>
<name>Alexey Izbyshev</name>
<email>izbyshev@ispras.ru</email>
</author>
<published>2018-08-25T23:52:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=b57b4ac042b977e0b42a2f5ddb30ca7edffacfa9'/>
<id>b57b4ac042b977e0b42a2f5ddb30ca7edffacfa9</id>
<content type='text'>
Reported by Svace static analyzer.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported by Svace static analyzer.</pre>
</div>
</content>
</entry>
<entry>
<title>closes bpo-34501: PyType_FromSpecWithBases: Check spec-&gt;name before dereferencing it. (GH-8930)</title>
<updated>2018-08-25T18:53:47+00:00</updated>
<author>
<name>Alexey Izbyshev</name>
<email>izbyshev@ispras.ru</email>
</author>
<published>2018-08-25T18:53:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=5f79b50763d687aeeed8edcb4efcc7ac9f8fa186'/>
<id>5f79b50763d687aeeed8edcb4efcc7ac9f8fa186</id>
<content type='text'>
Reported by Svace static analyzer.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported by Svace static analyzer.</pre>
</div>
</content>
</entry>
<entry>
<title>closes bpo-34493: Objects/genobject.c: Add missing NULL check to compute_cr_origin() (GH-8911)</title>
<updated>2018-08-25T07:15:23+00:00</updated>
<author>
<name>Alexey Izbyshev</name>
<email>izbyshev@ispras.ru</email>
</author>
<published>2018-08-25T07:15:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=8fdd331bbf7e60dd81c02c7077f44c7939e2a05d'/>
<id>8fdd331bbf7e60dd81c02c7077f44c7939e2a05d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in range_repr() (GH-8880)</title>
<updated>2018-08-24T04:39:45+00:00</updated>
<author>
<name>Alexey Izbyshev</name>
<email>izbyshev@ispras.ru</email>
</author>
<published>2018-08-24T04:39:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=7ecae3ca0bda3cacf3b0125bae0bc718a17cc071'/>
<id>7ecae3ca0bda3cacf3b0125bae0bc718a17cc071</id>
<content type='text'>
Also, propagate the error from PyNumber_AsSsize_t() because we don't care
only about OverflowError which is not reported if the second argument is NULL.

Reported by Svace static analyzer.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also, propagate the error from PyNumber_AsSsize_t() because we don't care
only about OverflowError which is not reported if the second argument is NULL.

Reported by Svace static analyzer.</pre>
</div>
</content>
</entry>
</feed>
