| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
You have multiple different changes mixed together, please split it out.
Sorry, something went wrong.
There was a problem hiding this comment.
I'll mark this a draft. Sorry, but current approach seems unacceptable for me.
PS: Please also don't alter commit history in any way (force-pushes, etc).
Sorry, something went wrong.
| .. c:function:: PyObject* PyDescr_NewMember(PyTypeObject *type, struct PyMemberDef *meth) | ||
|
|
||
|
|
||
| .. c:var:: PyTypeObject PyMemberDescr_Type |
There was a problem hiding this comment.
Changes in Doc/c-api/ are not related to this pr, please revert.
Sorry, something went wrong.
| * When using ``__format__`` (f-strings, ``format()``, ``str.format()``), | ||
| Decimal formats with maximum precision only when precision is **omitted** |
There was a problem hiding this comment.
This is already documented, please revert. Also, the whole section of documentation is about string formatting, it's pointless to say that you are using __format__().
Sorry, something went wrong.
| * When using ``%`` formatting (old-style string formatting with the ``%`` operator), | ||
| Decimal values are first converted to :class:`float`, which may result in |
There was a problem hiding this comment.
Sorry, something went wrong.
|
Apologies for the confusion—I had an out-of-sync branch that mixed commits from multiple PRs. After reviewing the feedback, I realize:
Closing this PR. I'll discuss on the issue thread whether any documentation changes are still needed before opening a fresh PR. Thanks for the review. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR clarifies how Decimal behaves differently when formatted using __format__ (f-strings, format(), str.format()) versus % formatting (old-style string formatting).
Changes:
Documentation preview: (will be auto-generated)
Fixes #142108
📚 Documentation preview 📚: https://cpython-previews--142117.org.readthedocs.build/