Skip to content

gh-73487: Convert _decimal to use Argument Clinic (part 6) #138015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

skirpichev
Copy link
Contributor

@skirpichev skirpichev commented Aug 21, 2025

@skirpichev skirpichev force-pushed the ac-decimal/73487-pt6 branch from 903fcca to 5a20bf0 Compare August 22, 2025 01:29
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

LGTM. 👍

@skirpichev
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants