<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/pystrhex.c, branch master</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/pystrhex.c?h=master</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/pystrhex.c?h=master'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2022-04-21T20:07:19Z</updated>
<entry>
<title>gh-91768: C API no longer use "const PyObject*" type (#91769)</title>
<updated>2022-04-21T20:07:19Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-04-21T20:07:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=eaa85cb22fa2d9e7cd31c2eac29a56cd3a8f2f65'/>
<id>urn:sha1:eaa85cb22fa2d9e7cd31c2eac29a56cd3a8f2f65</id>
<content type='text'>
Py_REFCNT(), Py_TYPE(), Py_SIZE() and Py_IS_TYPE() functions argument
type is now "PyObject*", rather than "const PyObject*".

* Replace also "const PyObject*" with "PyObject*" in functions:

  * _Py_strhex_impl()
  * _Py_strhex_with_sep()
  * _Py_strhex_bytes_with_sep()

* Remove _PyObject_CAST_CONST() and _PyVarObject_CAST_CONST() macros.
* Py_IS_TYPE() can now use Py_TYPE() in its implementation.</content>
</entry>
<entry>
<title>bpo-45434: pyport.h no longer includes &lt;stdlib.h&gt; (GH-28914)</title>
<updated>2021-10-13T17:25:53Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-10-13T17:25:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=aac29af6785712019d34f1a7f15b3c408a4f68ae'/>
<id>urn:sha1:aac29af6785712019d34f1a7f15b3c408a4f68ae</id>
<content type='text'>
Include &lt;stdlib.h&gt; explicitly in C files.

Python.h includes &lt;wchar.h&gt;.</content>
</entry>
<entry>
<title>bpo-45434: Remove pystrhex.h header file (GH-28923)</title>
<updated>2021-10-13T13:22:35Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2021-10-13T13:22:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bbe7497c5a44c2b4ec726605cf5a9086ba02daf1'/>
<id>urn:sha1:bbe7497c5a44c2b4ec726605cf5a9086ba02daf1</id>
<content type='text'>
Move Include/pystrhex.h to Include/internal/pycore_strhex.h.
The header file only contains private functions.

The following C extensions are now built with Py_BUILD_CORE_MODULE
macro defined to get access to the internal C API:

* _blake2
* _hashopenssl
* _md5
* _sha1
* _sha3
* _ssl
* binascii</content>
</entry>
<entry>
<title>bpo-40313: speed up bytes.hex() (GH-19594)</title>
<updated>2020-04-21T00:17:52Z</updated>
<author>
<name>sweeneyde</name>
<email>36520290+sweeneyde@users.noreply.github.com</email>
</author>
<published>2020-04-21T00:17:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6a9e80a93148b13e4d3bceaab5ea1804ab0e64d5'/>
<id>urn:sha1:6a9e80a93148b13e4d3bceaab5ea1804ab0e64d5</id>
<content type='text'>
Automerge-Triggered-By: @gpshead</content>
</entry>
<entry>
<title>Optimize _Py_strhex_impl() (GH-19535)</title>
<updated>2020-04-15T12:05:24Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-15T12:05:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=455df9779873b8335b20292b8d0c43d66338a4db'/>
<id>urn:sha1:455df9779873b8335b20292b8d0c43d66338a4db</id>
<content type='text'>
Avoid a temporary buffer to create a bytes string: use
PyBytes_FromStringAndSize() to directly allocate a bytes object.

Cleanup also the code: PEP 7 formatting, move variable definitions
closer to where they are used. Fix assertion checking "j" index.</content>
</entry>
<entry>
<title>Fix unused variable and signed/unsigned warnings (GH-15537)</title>
<updated>2019-08-27T16:55:13Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2019-08-27T16:55:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0138c4ceab1e10d42d0aa962d2ae079b46da7671'/>
<id>urn:sha1:0138c4ceab1e10d42d0aa962d2ae079b46da7671</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix compiler warnings in the pystrehex module (GH-13730)</title>
<updated>2019-06-01T20:02:08Z</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2019-06-01T20:02:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=938d9a0167f7fa4ed109484d269902021d274c64'/>
<id>urn:sha1:938d9a0167f7fa4ed109484d269902021d274c64</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-22385: Support output separators in hex methods. (#13578)</title>
<updated>2019-05-29T18:46:58Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@krypto.org</email>
</author>
<published>2019-05-29T18:46:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0c2f9305640f7655ba0cd5f478948b2763b376b3'/>
<id>urn:sha1:0c2f9305640f7655ba0cd5f478948b2763b376b3</id>
<content type='text'>
* bpo-22385: Support output separators in hex methods.

Also in binascii.hexlify aka b2a_hex.

The underlying implementation behind all hex generation in CPython uses the
same pystrhex.c implementation.  This adds support to bytes, bytearray,
and memoryview objects.

The binascii module functions exist rather than being slated for deprecation
because they return bytes rather than requiring an intermediate step through a
str object.

This change was inspired by MicroPython which supports sep in its binascii
implementation (and does not yet support the .hex methods).

https://bugs.python.org/issue22385</content>
</entry>
<entry>
<title>closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)</title>
<updated>2018-09-12T19:06:42Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2018-09-12T19:06:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e5024517811ee990b770fca0ba7058742d00e032'/>
<id>urn:sha1:e5024517811ee990b770fca0ba7058742d00e032</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-32150: Expand tabs to spaces in C files. (#4583)</title>
<updated>2017-11-28T15:56:10Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-11-28T15:56:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=598ceae876ff4a23072e59945597e945583de4ab'/>
<id>urn:sha1:598ceae876ff4a23072e59945597e945583de4ab</id>
<content type='text'>
</content>
</entry>
</feed>
