You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the _decimal module we have Decimal's tp_name set to "decimal.Decimal", while for the _pydecimal version it's just "Decimal". Same is true for other provided types. Not sure that this affects many projects (from pure-python side I don't see differences due to this setting). But here is a bugfix from gmpy2: aleaxit/gmpy@4a05610
Maybe it worth to make these slots identical? I doubt there is a way to change pure-Python version to C-version, but it's easy to do the opposite:
Bug report
Bug description:
For the
_decimal
module we have Decimal'stp_name
set to "decimal.Decimal", while for the_pydecimal
version it's just "Decimal". Same is true for other provided types. Not sure that this affects many projects (from pure-python side I don't see differences due to this setting). But here is a bugfix from gmpy2: aleaxit/gmpy@4a05610Maybe it worth to make these slots identical? I doubt there is a way to change pure-Python version to C-version, but it's easy to do the opposite:
As before, I don't see that this affects pure-Python code, using the decimal module. Both
__name__
and__module__
attributes are correct:CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
The text was updated successfully, but these errors were encountered: