Skip to content

Conversation

@skirpichev
Copy link
Contributor

@skirpichev skirpichev commented Apr 23, 2021

I'm not sure how to reproduce pickle problem, mentioned by Serhiy in the issue thread. Seems to be working...

There are few things that might be changed too, but I'm not sure they are suitable for this pr:

  1. pymath.h's macroses (e.g. _Py_InIntegralTypeRange -> _Py_InIntegerTypeRange)
  2. Few Decimal's methods (e.g. to_integral() -> to_integer())

https://bugs.python.org/issue32891

@skirpichev
Copy link
Contributor Author

@terryjreedy, I would appreciate your review, as issue creator. The patch itself is tiny (Lib/numbers.py, Doc/library/numbers.rst and few places where the new class is referenced, instead of the old). The rest is my attempt to make docs more consistent in using integer vs integral. I can split that part to a separate commit, if this simplify review somehow.

BTW, PEP 3141 references the old naming scheme. Perhaps, it must be updated?

@rhettinger rhettinger removed their request for review April 24, 2021 00:36
@skirpichev
Copy link
Contributor Author

skirpichev commented Apr 26, 2021 via email

@mdickinson
Copy link
Member

Python comments invent a new noun, integral

That would also be wrong, but in all the cases I've seen in comments and documentation, "integral" is being used as an adjective, not a noun. Do you have counterexamples?

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.

6 participants