FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.11] gh-104018: disallow "z" format specifier in %-format of byte strings (GH-104033) by miss-islington · Pull Request #104058 · python/cpython · GitHub

/ cpython Public

[3.11] gh-104018: disallow "z" format specifier in %-format of byte strings (GH-104033) - #104058

Merged
mdickinson merged 1 commit into
python:3.11from
miss-islington:backport-3ed8c88-3.11
May 1, 2023
Merged

[3.11] gh-104018: disallow "z" format specifier in %-format of byte strings (GH-104033)#104058
mdickinson merged 1 commit into
python:3.11from
miss-islington:backport-3ed8c88-3.11

Conversation

Copy link
Copy Markdown
Contributor

PEP-0682 specified that %-formatting would not support the "z" specifier,
but it was unintentionally allowed for bytes. This PR makes use of the "z"
flag an error for %-formatting in a bytestring.

Issue: GH-104018


(cherry picked from commit 3ed8c88)

Co-authored-by: John Belmonte john@neggie.net
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>

…rings (pythonGH-104033)

PEP-0682 specified that %-formatting would not support the "z" specifier,
but it was unintentionally allowed for bytes. This PR makes use of the "z"
flag an error for %-formatting in a bytestring.

Issue: pythonGH-104018

---------

(cherry picked from commit 3ed8c88)

Co-authored-by: John Belmonte <john@neggie.net>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL