Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use calloc-based functions, not malloc. (GH-19152) | Andy Lester | 2020-03-25 | 1 | -8/+2 |
| | |||||
* | bpo-39824: module_traverse() don't call m_traverse if md_state=NULL (GH-18738) | Victor Stinner | 2020-03-17 | 1 | -9/+5 |
| | | | | | | | | | | | | | Extension modules: m_traverse, m_clear and m_free functions of PyModuleDef are no longer called if the module state was requested but is not allocated yet. This is the case immediately after the module is created and before the module is executed (Py_mod_exec function). More precisely, these functions are not called if m_size is greater than 0 and the module state (as returned by PyModule_GetState()) is NULL. Extension modules without module state (m_size <= 0) are not affected. Co-Authored-By: Petr Viktorin <encukou@gmail.com> | ||||
* | bpo-1635741: Fix potential refleaks in binascii module (GH-18613) | Hai Shi | 2020-03-11 | 1 | -7/+45 |
| | |||||
* | bpo-39353: binascii.crc_hqx() is no longer deprecated (GH-18276) | Victor Stinner | 2020-01-30 | 1 | -5/+0 |
| | | | The binascii.crc_hqx() function is no longer deprecated. | ||||
* | bpo-39353: Deprecate the binhex module (GH-18025) | Victor Stinner | 2020-01-22 | 1 | -4/+29 |
| | | | | | | | | Deprecate binhex4 and hexbin4 standards. Deprecate the binhex module and the following binascii functions: * b2a_hqx(), a2b_hqx() * rlecode_hqx(), rledecode_hqx() * crc_hqx() | ||||
* | bpo-34749: Improved performance of binascii.a2b_base64(). (GH-9444) | Sergey Fedoseev | 2019-07-14 | 1 | -86/+56 |
| | | | https://bugs.python.org/issue34749 | ||||
* | bpo-22385: Support output separators in hex methods. (#13578) | Gregory P. Smith | 2019-05-29 | 1 | -8/+25 |
| | | | | | | | | | | | | | | | | | | * 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 | ||||
* | bpo-31862: Port binascii to PEP 489 multiphase initialization (GH-4108) | Marcel Plch | 2019-05-22 | 1 | -34/+103 |
| | |||||
* | bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264) | Serhiy Storchaka | 2019-03-13 | 1 | -1/+1 |
| | |||||
* | bpo-34736: improve error message for invalid length b64decode inputs (GH-9563) | Tal Einat | 2018-09-28 | 1 | -3/+7 |
| | | | | | | | | Improvements: 1. Include the number of valid data characters in the error message. 2. Mention "number of data characters" rather than "length". https://bugs.python.org/issue34736 | ||||
* | bpo-33770: improve base64 exception message for encoded inputs of invalid ↵ | Tal Einat | 2018-06-10 | 1 | -1/+12 |
| | | | | length (#7416) | ||||
* | bpo-32147: Improved perfomance of binascii.unhexlify(). (GH-4586) | Sergey Fedoseev | 2018-02-26 | 1 | -33/+5 |
| | |||||
* | bpo-9566: Fix some Windows x64 compiler warnings (#2492) | Segev Finer | 2017-07-26 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-9566: Silence liblzma warnings * bpo-9566: Silence tcl warnings * bpo-9566: Silence tk warnings * bpo-9566: Silence tix warnings * bpo-9566: Fix some library warnings * bpo-9566: Fix msvcrtmodule.c warnings * bpo-9566: Silence _bz2 warnings * bpo-9566: Fixed some _ssl warnings * bpo-9566: Fix _msi warnings * bpo-9566: Silence _ctypes warnings * Revert "bpo-9566: Fixed some _ssl warnings" This reverts commit a639001c949ba53338a9ee047d2ec1efd2505e6f. * bpo-9566: Also consider NULL as a possible error in HANDLE_return_converter * bpo-9566: whitespace fixes | ||||
* | bpo-30103: Allow Uuencode in Python using backtick as zero instead of space ↵ | Xiang Zhang | 2017-05-03 | 1 | -4/+12 |
| | | | | | | (#1326) | ||||
* | restore *data* parameter of binascii.b2a_base64 to positional-only (#1352) | Xiang Zhang | 2017-05-01 | 1 | -1/+2 |
| | |||||
* | bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485) | Serhiy Storchaka | 2017-03-12 | 1 | -8/+8 |
| | |||||
* | Issue #29004: Merge crc_hqx() doc from 3.5 | Martin Panter | 2016-12-24 | 1 | -2/+2 |
|\ | |||||
| * | Issue #29004: Document binascii.crc_hqx() implements CRC-CCITT | Martin Panter | 2016-12-24 | 1 | -2/+2 |
| | | |||||
* | | Issue #27599: Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp(). | Serhiy Storchaka | 2016-09-14 | 1 | -5/+7 |
|\ \ | |/ | |||||
| * | Issue #27599: Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp(). | Serhiy Storchaka | 2016-09-14 | 1 | -5/+7 |
| | | |||||
* | | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Raymond Hettinger | 2016-08-30 | 1 | -2/+2 |
| | | |||||
* | | merge 3.5 (closes #27760) | Benjamin Peterson | 2016-08-14 | 1 | -9/+15 |
|\ \ | |/ | |||||
| * | merge 3.4 (closes #27760) | Benjamin Peterson | 2016-08-14 | 1 | -9/+15 |
| |\ | |||||
| | * | merge 3.3 (closes #27760) | Benjamin Peterson | 2016-08-14 | 1 | -9/+15 |
| | |\ | |||||
| | | * | fix possible integer overflow in binascii.b2a_qp (closes #27760) | Benjamin Peterson | 2016-08-14 | 1 | -9/+16 |
| | | | | | | | | | | | | | | | | Reported by Thomas E. Hybel | ||||
* | | | | - Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -32/+32 |
|\ \ \ \ | |/ / / | | | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
| * | | | Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -32/+32 |
| | | | | | | | | | | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
* | | | | Issue #25923: Added more const qualifiers to signatures of static and ↵ | Serhiy Storchaka | 2015-12-25 | 1 | -17/+27 |
| | | | | | | | | | | | | | | | | private functions. | ||||
* | | | | Issue #25923: Added the const qualifier to static constant arrays. | Serhiy Storchaka | 2015-12-25 | 1 | -7/+7 |
| | | | | |||||
* | | | | Refactor binascii.rledecode_hqx() | Victor Stinner | 2015-10-14 | 1 | -28/+25 |
| | | | | | | | | | | | | | | | | Rewrite the code to handle the output buffer. | ||||
* | | | | Issue #25384: Fix binascii.rledecode_hqx() | Victor Stinner | 2015-10-14 | 1 | -4/+7 |
| | | | | | | | | | | | | | | | | | | | | Fix usage of _PyBytesWriter API. Use the new _PyBytesWriter_Resize() function instead of _PyBytesWriter_Prepare(). | ||||
* | | | | Issue #25384: Use _PyBytesWriter API in binascii | Victor Stinner | 2015-10-13 | 1 | -111/+83 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This API avoids a final call to _PyBytes_Resize() for output smaller than 512 bytes. Small optimization: disable overallocation in binascii.rledecode_hqx() for the last write. | ||||
* | | | | Issue #25357: Add an optional newline paramer to binascii.b2a_base64(). | Victor Stinner | 2015-10-11 | 1 | -8/+13 |
|/ / / | | | | | | | | | | base64.b64encode() uses it to avoid a memory copy. | ||||
* | | | Switch binascii over to using the common _Py_strhex implementation for its hex | Gregory P. Smith | 2015-04-26 | 1 | -28/+3 |
| | | | | | | | | | | | | and hexlify functions. issue9951. | ||||
* | | | Issue #23728: binascii.crc_hqx() could return an integer outside of the range | Serhiy Storchaka | 2015-04-20 | 1 | -8/+8 |
|\ \ \ | |/ / | | | | | | | 0-0xffff for empty data. | ||||
| * | | Issue #23728: binascii.crc_hqx() could return an integer outside of the range | Serhiy Storchaka | 2015-04-20 | 1 | -8/+8 |
| | | | | | | | | | | | | 0-0xffff for empty data. | ||||
* | | | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78. | Larry Hastings | 2015-04-14 | 1 | -2/+3 |
| | | | |||||
* | | | Issue #23501: Argumen Clinic now generates code into separate files by default. | Serhiy Storchaka | 2015-04-03 | 1 | -2/+1 |
|/ / | |||||
* | | Issue #13637: Improve exception message of a2b_* functions. | Berker Peksag | 2015-02-14 | 1 | -2/+2 |
| | | | | | | | | Patch by Vajrasky Kok. | ||||
* | | Issue #23280: Fix docstrings for binascii.(un)hexlify | Zachary Ware | 2015-01-20 | 1 | -4/+31 |
| | | |||||
* | | Issue #20326: Argument Clinic now uses a simple, unique signature to | Larry Hastings | 2014-01-28 | 1 | -16/+16 |
| | | | | | | | | | | | | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date). | ||||
* | | cleanup after custom buffer converter | Benjamin Peterson | 2014-01-26 | 1 | -0/+5 |
| | | |||||
* | | Fix for catestrophic errors in previous checkin (Argument Clinic rollup patch). | Larry Hastings | 2014-01-26 | 1 | -1/+1 |
| | | |||||
* | | Fixed converting errors in the binascii module (issue20151). | Serhiy Storchaka | 2014-01-25 | 1 | -37/+36 |
| | | | | | | | | | | a2b_qp() now accepts keyword arguments. All "ascii" parameters is renamed to "data" for consistancy with a2b_qp(). | ||||
* | | Issue #20151: The binascii module now uses Argument Clinic. | Serhiy Storchaka | 2014-01-25 | 1 | -294/+307 |
| | | |||||
* | | Merge #19411: Clarify that b2a_hex/hexlify returns a bytes object. | R David Murray | 2013-11-03 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | #19411: Clarify that b2a_hex/hexlify returns a bytes object. | R David Murray | 2013-11-03 | 1 | -1/+2 |
| | | | | | | | | Initial patch by Vajrasky Kok. | ||||
* | | Issue #18408: Fix usage of _PyBytes_Resize() | Victor Stinner | 2013-07-08 | 1 | -15/+8 |
|/ | | | | | _PyBytes_Resize(&v, new_size) sets v to NULL on error, so v cannot be used anymore. Replace "Py_DECREF(v); v = NULL;" with "Py_CLEAR(v);". | ||||
* | Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵ | Antoine Pitrou | 2013-02-09 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag), mpdecimal (needs to build without Python.h). | ||||
| * | Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵ | Antoine Pitrou | 2013-02-09 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag). |