Skip to content

Isolate the _decimal extension module #106078

Closed
@CharlieZhao95

Description

@CharlieZhao95

This issue is used to track the PRs split from gh-103092. Isolate the _decimal extension module by:

  • Establish a global module state and convert static types to heap types
  • Move other global static variables to the global module state(possibly multiple PRs)
    • DecimalException
    • basic_context_template
    • tls_context_key
    • cached_context
    • current_context_var
    • default_context_template
    • extended_context_template
    • round_map
    • Rational
    • SignalTuple
    • External C-API functions
  • Convert the global module state to true module state
    • signal_map
    • cond_map
    • convert global state to module state

See original issue Isolate Stdlib Extension Modules and PEP-687 for details.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions