[issue39722] decimal differs between pure Python and C implementations

2020-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for double checking. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39722] decimal differs between pure Python and C implementations

2020-02-21 Thread Shantanu
Shantanu added the comment: Sounds good, thought I'd check! :-) Definitely looks annoying to remove from the Python version too. -- ___ Python tracker ___ ___

[issue39722] decimal differs between pure Python and C implementations

2020-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I wouldn't worry about this. The context argument for the dunder methods isn't part of the public API. It is just an internal implementation detail that was necessary for the Python implementation but would make no sense at all for the C implementation.

[issue39722] decimal differs between pure Python and C implementations

2020-02-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +facundobatista, mark.dickinson, rhettinger, skrah ___ Python tracker ___ ___ Python-b

[issue39722] decimal differs between pure Python and C implementations

2020-02-21 Thread Shantanu
New submission from Shantanu : The dunder methods on decimal.Decimal accept an extra context argument in the pure Python version which the C version does not (violating PEP 399). This came up in https://github.com/python/typeshed/pull/3633, where Sebastian provided the following summary of th