cpython/Tools/c-analyzer/cpython
Serhiy Storchaka a005f323b7
[3.14] gh-144545: Improve handling of default values in Argument Clinic (GH-146016) (GH-146052)
* Add the c_init_default attribute which is used to initialize the C variable
  if the default is not explicitly provided.
* Add the c_default_init() method which is used to derive c_default from
  default if c_default is not explicitly provided.
* Explicit c_default and py_default are now almost always have precedence
  over the generated value.
* Add support for bytes literals as default values.
* Improve support for str literals as default values (support non-ASCII
  and non-printable characters and special characters like backslash or quotes).
* Fix support for str and bytes literals containing trigraphs, "/*" and "*/".
* Improve support for default values in converters "char" and "int(accept={str})".
* Converter "int(accept={str})" now requires 1-character string instead of
  integer as default value.
* Add support for non-None default values in converter "Py_buffer": NULL,
  str and bytes literals.
* Improve error handling for invalid default values.
* Rename Null to NullType for consistency.
(cherry picked from commit 99e2c5eccd)
2026-03-17 10:55:15 +00:00
..
__init__.py bpo-36876: Fix the C analyzer tool. (GH-22841) 2020-10-22 18:42:51 -06:00
__main__.py gh-102033: Fix syntax error in Tools/c-analyzer (GH-102066) 2023-03-22 07:59:32 -07:00
_analyzer.py Allow local use of static PyMutex in the C analyzer (#127102) 2024-11-22 08:48:39 +01:00
_builtin_types.py gh-94673: [c-analyzer] Add a Script to Identify Static Types (#94989) 2022-07-18 19:03:57 -06:00
_capi.py gh-102033: Fix syntax error in Tools/c-analyzer (GH-102066) 2023-03-22 07:59:32 -07:00
_files.py gh-90815: Add mimalloc memory allocator (#109914) 2023-10-30 15:43:11 +00:00
_parser.py [3.14] gh-144545: Improve handling of default values in Argument Clinic (GH-146016) (GH-146052) 2026-03-17 10:55:15 +00:00
globals-to-fix.tsv gh-132661: Implement PEP 750 (#132662) 2025-04-30 11:46:41 +02:00
ignored.tsv [3.14] gh-140260: fix data race in _struct module initialization with subinterpreters (GH-140909) (#141501) 2025-11-13 17:23:22 +05:30
known.tsv bpo-36876: Fix the C analyzer tool. (GH-22841) 2020-10-22 18:42:51 -06:00