]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106078: Convert `_decimal` types to heap types (#106079)
authorCharlie Zhao <zhaoyu_hit@qq.com>
Thu, 29 Jun 2023 10:27:20 +0000 (18:27 +0800)
committerGitHub <noreply@github.com>
Thu, 29 Jun 2023 10:27:20 +0000 (10:27 +0000)
commitfb0d9b9ac1ec3ea13fae8b8ef6a4f0a5a80482b3
tree6508b6d860391ffef6f205fc66d7e8741514cf8d
parent0e24499129f3917b199a6d46fa33eeedd2c447fc
gh-106078: Convert `_decimal` types to heap types (#106079)

- Establish global state struct
- Convert static types to heap types and add them to global state:
    * PyDecContextManager_Type
    * PyDecContext_Type
    * PyDecSignalDictMixin_Type
    * PyDec_Type
- Add to global state:
    * PyDecSignalDict_Type
    * DecimalTuple

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Lib/test/test_decimal.py
Modules/_decimal/_decimal.c
Tools/c-analyzer/cpython/globals-to-fix.tsv