Skip to content

Create a better interface for switching precision and rounding #683

@skirpichev

Description

@skirpichev

The mpmath provides global context objects (mp, fp, iv). Most functions in the global mpmath namespace are actually methods of the mp context.

It would be better, if we could introduce an explicit notion of the current context, that will prevent issues like #657, something more close to gmpy2 contexts handling. (Another example that worth considering is the bigfloat package.)

The current interface also is not thread-safe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions