Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address AA-Turner's notes
  • Loading branch information
jb2170 committed May 8, 2025
commit 3ca612051846f6389ba227487932d4b7729dc8fc
8 changes: 4 additions & 4 deletions peps/pep-0786.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Sponsor: Alyssa Coghlan <[email protected]>
Status: Draft
Type: Standards Track
Created: 04-Apr-2025
Python-Version: Pending
Post-History: `14-Feb-2025 <https://discuss.python.org/t/implement-precision-format-spec-for-int-type-data/80760>`__
Python-Version: 3.15
Post-History: `14-Feb-2025 <https://discuss.python.org/t/80760>`__,


Abstract
Expand Down Expand Up @@ -353,8 +353,8 @@ TODO AND REMOVE BEFORE MERGE
The existing `format specification <formatspec_>`_ mandates that if both ``z`` and ``#`` are to be used, they must appear in that order, leading to ``z#.``, with ``z`` separated from its ``.``, however this could be changed to be more permissible if there are no syntax clashes, to permit ``#z.``, or is this just my taste? :pep:`682` proposed / uses ``[sign][z]`` instead of ``[sign[z]]``, which has given us the opportunity to reuse ``z``, and really has no strict need to be ``[sign][z][#]...[.precision]``, or are we doing too much voodoo by allowing ``z`` and ``#`` to commute with each other, even if it's just for ``int`` fields. I'm starting to think this might be too much voodoo.


..
FOOTNOTES
Footnotes
=========

.. _formatstrings: https://docs.python.org/3/library/string.html#formatstrings
.. _formatspec: https://docs.python.org/3/library/string.html#formatspec