summaryrefslogtreecommitdiffstats
path: root/Python/pystrhex.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-40313: speed up bytes.hex() (GH-19594)sweeneyde2020-04-211-12/+49
| | | Automerge-Triggered-By: @gpshead
* Optimize _Py_strhex_impl() (GH-19535)Victor Stinner2020-04-151-24/+26
| | | | | | | 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.
* Fix unused variable and signed/unsigned warnings (GH-15537)Raymond Hettinger2019-08-271-1/+1
|
* Fix compiler warnings in the pystrehex module (GH-13730)Pablo Galindo2019-06-011-2/+2
|
* bpo-22385: Support output separators in hex methods. (#13578)Gregory P. Smith2019-05-291-10/+80
| | | | | | | | | | | | | | | | | | * 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
* closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)Benjamin Peterson2018-09-121-2/+4
|
* bpo-32150: Expand tabs to spaces in C files. (#4583)Serhiy Storchaka2017-11-281-6/+6
|
* Silence a gcc "may be used uninitialized" compiler warning. Not true.Gregory P. Smith2015-04-261-0/+1
| | | | Initializing retval prevents the naive warning.
* Add missing PyAPI_FUNC macro's to the public functions as other .c files doGregory P. Smith2015-04-261-2/+2
| | | | | in hopes that this fixes the windows extension module link error for modules trying to call _Py_strhex functions. issue9951.
* Add the files missing from c9f1630cf2b1 for issue9951.Gregory P. Smith2015-04-261-0/+60
hg status should be my friend more often...