GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — gh-73487: Convert _decimal to use Argument Clinic (part 6) by skirpichev · Pull Request #138015 · python/cpython Conversation
|
|
Docstrings diff: --- ref.txt 2025-08-22 11:00:56.325746547 +0300 +++ patch.txt 2025-08-22 10:49:32.335072600 +0300 @@ -95,6 +95,8 @@ | traps=None | ) | + | Create context. + | | The context affects almost all operations and controls rounding, | Over/Underflow, raising of exceptions and much more. A new context | can be constructed as follows: @@ -182,12 +184,16 @@ | Copy the sign from y to x. | | create_decimal(self, num='0', /) - | Create a new Decimal instance from num, using self as the context. Unlike the - | Decimal constructor, this function observes the context limits. + | Create a new Decimal instance from num, using self as the context. + | + | Unlike the Decimal constructor, this function observes the context + | limits. | | create_decimal_from_float(self, f, /) - | Create a new Decimal instance from float f. Unlike the Decimal.from_float() - | class method, this function observes the context limits. + | Create a new Decimal instance from float f. + | + | Unlike the Decimal.from_float() class method, this function observes + | the context limits. | | divide(self, x, y, /) | Return x divided by y. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.