"z" format specifier is treated differently in unicode and bytes · Issue #104018 · python/cpython · GitHub

github.com

Tin mới

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

interpreter-core(Objects, Python, Grammar, and Parser dirs)

type-bugAn unexpected behavior, bug, or error

string formatting: normalize negative zero #90153

b0b836b20cb5#diff-f6d440aad34e1c4535c0d898c0197a95490766c745991caace6f64b5dd1ece51

Hello up there. I've hit a discrepancy in how z flags is handled by % in unicode and bytes:

gh-104018: disallow "z" format specifier in %-format of byte strings #104033

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

gh-104018: remove unused format "z" handling in string formatfloat() #104107

[3.11] gh-104018: remove unused format "z" handling in string formatfloat() (GH-104107) #104260

⌂git
1/1