| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | gh-55531: Implement `normalize_encoding` in C (#136643) | Stan Ulbrych | 2025-10-30 | 1 | -0/+42 |
| | | | | Closes gh-55531 | ||||
| * | gh-139156: Optimize the UTF-7 encoder (#139253) | Victor Stinner | 2025-09-24 | 1 | -1/+1 |
| | | | | Remove base64SetO and base64WhiteSpace parameters. | ||||
| * | gh-129813, PEP 782: Use PyBytesWriter in _codecs.escape_decode() (#138919) | Victor Stinner | 2025-09-15 | 1 | -37/+32 |
| | | | | | Replace PyBytes_FromStringAndSize(NULL, size) and _PyBytes_Resize() with the new public PyBytesWriter API. | ||||
| * | GH-137623: Use an AC decorator for docstring line length enforcement (#137690) | Adam Turner | 2025-08-18 | 1 | -1/+2 |
| | | |||||
| * | GH-131238: Core header refactor (GH-131250) | Mark Shannon | 2025-03-17 | 1 | -0/+1 |
| | | | | | | * Moves most structs in pycore_ header files into pycore_structs.h and pycore_runtime_structs.h * Removes many cross-header dependencies | ||||
| * | gh-124665: Add `_PyCodec_UnregisterError` and `_codecs._unregister_error` ↵ | Bénédikt Tran | 2024-09-29 | 1 | -0/+25 |
| | | | | | (#124677) | ||||
| * | gh-116322: Add Py_mod_gil module slot (#116882) | Brett Simmers | 2024-05-03 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | This PR adds the ability to enable the GIL if it was disabled at interpreter startup, and modifies the multi-phase module initialization path to enable the GIL when loading a module, unless that module's spec includes a slot indicating it can run safely without the GIL. PEP 703 called the constant for the slot `Py_mod_gil_not_used`; I went with `Py_MOD_GIL_NOT_USED` for consistency with gh-104148. A warning will be issued up to once per interpreter for the first GIL-using module that is loaded. If `-v` is given, a shorter message will be printed to stderr every time a GIL-using module is loaded (including the first one that issues a warning). | ||||
| * | gh-104922: remove PY_SSIZE_T_CLEAN (#106315) | Inada Naoki | 2023-07-02 | 1 | -1/+0 |
| | | |||||
| * | Remove private _PyCodec_Lookup() function (#106269) | Victor Stinner | 2023-06-30 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | Remove the following private functions of the C API: * _PyCodecInfo_GetIncrementalDecoder() * _PyCodecInfo_GetIncrementalEncoder() * _PyCodec_DecodeText() * _PyCodec_EncodeText() * _PyCodec_Forget() * _PyCodec_Lookup() * _PyCodec_LookupTextEncoding() Move these functions to a new pycore_codecs.h internal header file. These functions are no longer exported. | ||||
| * | gh-99113: Add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED (gh-104205) | Eric Snow | 2023-05-05 | 1 | -0/+1 |
| | | | | Here we are doing no more than adding the value for Py_mod_multiple_interpreters and using it for stdlib modules. We will start checking for it in gh-104206 (once PyInterpreterState.ceval.own_gil is added in gh-104204). | ||||
| * | bpo-15999: Accept arbitrary values for boolean parameters. (#15609) | Serhiy Storchaka | 2022-12-03 | 1 | -30/+30 |
| | | | | builtins and extension module functions and methods that expect boolean values for parameters now accept any Python object rather than just a bool or int type. This is more consistent with how native Python code itself behaves. | ||||
| * | gh-90928: Statically Initialize the Keywords Tuple in Clinic-Generated Code ↵ | Eric Snow | 2022-08-11 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | (gh-95860) We only statically initialize for core code and builtin modules. Extension modules still create the tuple at runtime. We'll solve that part of interpreter isolation separately. This change includes generated code. The non-generated changes are in: * Tools/clinic/clinic.py * Python/getargs.c * Include/cpython/modsupport.h * Makefile.pre.in (re-generate global strings after running clinic) * very minor tweaks to Modules/_codecsmodule.c and Python/Python-tokenize.c All other changes are generated code (clinic, global strings). | ||||
| * | bpo-45467: Fix IncrementalDecoder and StreamReader in the ↵ | Serhiy Storchaka | 2021-10-14 | 1 | -5/+8 |
| | | | | | | | | | | "raw-unicode-escape" codec (GH-28944) They support now splitting escape sequences between input chunks. Add the third parameter "final" in codecs.raw_unicode_escape_decode(). It is True by default to match the former behavior. | ||||
| * | bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" ↵ | Serhiy Storchaka | 2021-10-14 | 1 | -5/+8 |
| | | | | | | | | | | codec (GH-28939) They support now splitting escape sequences between input chunks. Add the third parameter "final" in codecs.unicode_escape_decode(). It is True by default to match the former behavior. | ||||
| * | bpo-41919, test_codecs: Move codecs.register calls to setUp() (GH-22513) | Hai Shi | 2020-10-16 | 1 | -20/+0 |
| | | | | | * Move the codecs' (un)register operation to testcases. * Remove _codecs._forget_codec() and _PyCodec_Forget() | ||||
| * | bpo-41842: Add codecs.unregister() function (GH-22360) | Hai Shi | 2020-09-28 | 1 | -0/+22 |
| | | | | | Add codecs.unregister() and PyCodec_Unregister() functions to unregister a codec search function. | ||||
| * | bpo-1635741: Port _codecs extension module to multiphase initialization (PEP ↵ | Hai Shi | 2020-02-11 | 1 | -3/+7 |
| | | | | | | 489) (GH-18065) https://bugs.python.org/issue1635741 | ||||
| * | bpo-37206: Unrepresentable default values no longer represented as None. ↵ | Serhiy Storchaka | 2019-09-14 | 1 | -76/+76 |
| | | | | | | | | (GH-13933) In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values (like in the optional third parameter of getattr). "None" should be used if None is accepted as argument and passing None has the same effect as not passing the argument at all. | ||||
| * | bpo-36297: remove "unicode_internal" codec (GH-12342) | Inada Naoki | 2019-03-18 | 1 | -81/+1 |
| | | |||||
| * | bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485) | Serhiy Storchaka | 2017-03-12 | 1 | -26/+26 |
| | | |||||
| * | Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529) | Steve Dower | 2016-09-08 | 1 | -4/+4 |
| | | |||||
| * | Issue #27959: Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec ↵ | Steve Dower | 2016-09-07 | 1 | -0/+36 |
| | | | | | lookup | ||||
| * | - Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -92/+91 |
| |\ | | | | | | | 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 | -92/+91 |
| | | | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
| * | | Issues #26716, #26057: Regenerate Argument Clinic code. | Serhiy Storchaka | 2016-04-14 | 1 | -15/+15 |
| |\ \ | |/ | |||||
| * | | Issue #26057: Got rid of nonneeded use of PyUnicode_FromObject(). | Serhiy Storchaka | 2016-04-13 | 1 | -186/+45 |
| |/ | |||||
| * | Issue #24824: Signatures of codecs.encode() and codecs.decode() now are | Serhiy Storchaka | 2015-08-09 | 1 | -6/+6 |
| | | | | | compatible with pydoc. | ||||
| * | Fixed compilation on Windows for issue #20173. | Serhiy Storchaka | 2015-05-12 | 1 | -1/+1 |
| | | |||||
| * | Issue #20173: Converted the _codecs module to Argument Clinic. | Serhiy Storchaka | 2015-05-12 | 1 | -615/+629 |
| | | |||||
| * | Issue #23501: Argumen Clinic now generates code into separate files by default. | Serhiy Storchaka | 2015-04-03 | 1 | -29/+2 |
| | | |||||
| * | Issue #23001: Few functions in modules mmap, ossaudiodev, socket, ssl, and | Serhiy Storchaka | 2015-03-20 | 1 | -6/+9 |
| | | | | | | codecs, that accepted only read-only bytes-like object now accept writable bytes-like object too. | ||||
| * | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() | Serhiy Storchaka | 2015-02-02 | 1 | -9/+15 |
| |\ | | | | | | | and PyObject_AsWriteBuffer(). | ||||
| | * | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() | Serhiy Storchaka | 2015-02-02 | 1 | -9/+15 |
| | | | | | | | | | and PyObject_AsWriteBuffer(). | ||||
| * | | Merge issue 19548 changes from 3.4 | Nick Coghlan | 2015-01-06 | 1 | -3/+3 |
| |\ \ | |/ | |||||
| | * | Issue 19548: update codecs module documentation | Nick Coghlan | 2015-01-06 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | - clarified the distinction between text encodings and other codecs - clarified relationship with builtin open and the io module - consolidated documentation of error handlers into one section - clarified type constraints of some behaviours - added tests for some of the new statements in the docs | ||||
| * | | Merge fix for issue #22166 from 3.4 | Nick Coghlan | 2014-09-15 | 1 | -0/+54 |
| |\ \ | |/ | |||||
| | * | Issue #22166: clear codec caches in test_codecs | Nick Coghlan | 2014-09-15 | 1 | -0/+54 |
| | | | |||||
| * | | Issue #22207: Fix "comparison between signed and unsigned integers" warning in | Victor Stinner | 2014-08-17 | 1 | -1/+1 |
| | | | | | | | | | | | test checking for integer overflow on Py_ssize_t type: cast explicitly to size_t. | ||||
| * | | Issue #21488: Add support of keyword arguments for codecs.encode and ↵ | Victor Stinner | 2014-05-14 | 1 | -6/+10 |
| |/ | | | | codecs.decode | ||||
| * | Issue #18722: Remove uses of the "register" keyword in C code. | Antoine Pitrou | 2013-08-13 | 1 | -3/+3 |
| | | |||||
| * | Issue #16096: Fix several occurrences of potential signed integer overflow. ↵ | Mark Dickinson | 2012-10-06 | 1 | -2/+2 |
| | | | | | Thanks Serhiy Storchaka. | ||||
| * | #13406: fix more deprecation warnings and move the deprecation of ↵ | Ezio Melotti | 2011-11-17 | 1 | -5/+5 |
| | | | | | unicode-internal earlier in the code. | ||||
| * | #13406: silence deprecation warnings in test_codecs. | Ezio Melotti | 2011-11-16 | 1 | -1/+1 |
| | | |||||
| * | Plug some (unlikely) refleaks. | Antoine Pitrou | 2011-11-12 | 1 | -15/+45 |
| | | |||||
| * | Fix and deprecated the unicode_internal codec | Victor Stinner | 2011-11-10 | 1 | -4/+16 |
| | | | | | | | unicode_internal codec uses Py_UNICODE instead of the real internal representation (PEP 393: Py_UCS1, Py_UCS2 or Py_UCS4) for backward compatibility. | ||||
| * | Fix build on Windows | Victor Stinner | 2011-11-10 | 1 | -0/+4 |
| | | |||||
| * | Port encoders from Py_UNICODE API to unicode object API. | Martin v. Löwis | 2011-11-10 | 1 | -76/+46 |
| | | |||||
| * | Port UCS1 and charmap codecs to new API. | Martin v. Löwis | 2011-11-02 | 1 | -5/+1 |
| | | |||||
| * | Issue #12281: Rewrite the MBCS codec to handle correctly replace and ignore | Victor Stinner | 2011-10-18 | 1 | -0/+50 |
| | | | | | | error handlers on all Windows versions. The MBCS codec is now supporting all error handlers, instead of only replace to encode and ignore to decode. | ||||
| * | Issue #13088: Add shared Py_hexdigits constant to format a number into base 16 | Victor Stinner | 2011-10-14 | 1 | -3/+2 |
| | | |||||
