FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix inconsistent behavior of Decimal.from_float by crazymerlyn · Pull Request #5411 · RustPython/RustPython · GitHub

Repository navigation

Fix inconsistent behavior of Decimal.from_float - #5411

Merged
coolreader18 merged 1 commit into
RustPython:mainfrom
crazymerlyn:decimal-from-float
Sep 22, 2024
Merged

coolreader18 merged 1 commit into
RustPython:mainfrom
crazymerlyn:decimal-from-float

Conversation

Copy link
Copy Markdown
Contributor

Rustpython includes the test added in python/cpython#65, but not the behavior, leading to the test being disabled. This patches RustPython with the above pr to update from_float behavior when passed an int in order to pass the test.

coolreader18 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM, thank you for contributing!

For posterity: this is updating _pydecimal to a newer version from CPython.

coolreader18 merged commit eeb719e into RustPython:main Sep 22, 2024
crazymerlyn deleted the decimal-from-float branch September 22, 2024 04:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL