cpython/Objects
Miss Islington (bot) 10db28bfcf
[3.11] gh-104018: disallow "z" format specifier in %-format of byte strings (GH-104033) (#104058)
gh-104018: disallow "z" format specifier in %-format of byte strings (GH-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: GH-104018

---------

(cherry picked from commit 3ed8c88290)

Co-authored-by: John Belmonte <john@neggie.net>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2023-05-01 20:18:29 +00:00
..
clinic gh-91320: Argument Clinic uses _PyCFunction_CAST() (#32210) 2022-05-03 20:25:41 +02:00
stringlib gh-84461: Silence some compiler warnings on WASM (GH-93978) 2022-06-20 05:08:14 -07:00
abstract.c Use static inline function Py_EnterRecursiveCall() (#91988) 2022-05-04 13:30:23 +02:00
accu.c
boolobject.c [3.11] gh-101266: Revert fix __sizeof__ for subclasses of int (#101638) 2023-02-07 11:44:43 +00:00
bytearrayobject.c [3.11] gh-101765: Fix SystemError / segmentation fault in iter __reduce__ when internal access of builtins.__dict__ exhausts the iterator (GH-101769) (#102228) 2023-02-24 19:49:59 -08:00
bytes_methods.c
bytesobject.c [3.11] gh-104018: disallow "z" format specifier in %-format of byte strings (GH-104033) (#104058) 2023-05-01 20:18:29 +00:00
call.c Use static inline function Py_EnterRecursiveCall() (#91988) 2022-05-04 13:30:23 +02:00
capsule.c
cellobject.c
classobject.c bpo-46764: Fix wrapping bound method with @classmethod (#31367) 2022-05-04 23:00:21 -05:00
codeobject.c [3.11] GH-97779: Ensure that *all* frame objects are backed by "complete" frames (GH-97886) 2022-10-04 22:46:34 -07:00
complexobject.c
descrobject.c [3.11] GH-100942: Fix incorrect cast in property_copy(). (GH-100965). (#101008) 2023-01-15 12:38:25 +05:30
dictnotes.txt
dictobject.c gh-102701: Fix overflow in dictobject.c (GH-102750) 2023-03-17 07:54:18 -07:00
enumobject.c
exception_handling_notes.txt gh-96455: update example in exception_handling_notes.txt to the 3.11RC bytecode (GH-96456) 2022-09-01 06:45:09 -07:00
exceptions.c gh-99553: fix bug where an ExceptionGroup subclass can wrap a BaseException (GH-99572) 2022-11-18 08:10:55 -08:00
fileobject.c
floatobject.c gh-95605: Fix float(s) error message when s contains only whitespace (GH-95665) (GH-95858) 2022-08-11 17:16:53 +01:00
frame_layout.md
frameobject.c [3.11] gh-99110: Initialize frame->previous in init_frame to fix segmentation fault (GH-100182) (#100478) 2022-12-24 11:17:10 +05:30
funcobject.c gh-87864: Use correct function definition syntax in the docs (GH-103312) 2023-04-11 07:19:33 -07:00
genericaliasobject.c [3.11] gh-101765: Fix SystemError / segmentation fault in iter __reduce__ when internal access of builtins.__dict__ exhausts the iterator (GH-101769) (#102228) 2023-02-24 19:49:59 -08:00
genobject.c Add more stats for freelist use and allocations. (GH-92211) 2022-05-03 16:40:24 -06:00
interpreteridobject.c
iterobject.c gh-101892: Fix SystemError when a callable iterator call exhausts the iterator (GH-101896) 2023-03-04 06:46:17 -08:00
listobject.c [3.11] gh-101765: Fix refcount issues in list and unicode pickling (GH-102265) (#102268) 2023-02-25 16:38:19 -08:00
listsort.txt
lnotab_notes.txt
locations.md GH-88116: Use a compact format to represent end line and column offsets. (GH-91666) 2022-04-21 16:10:37 +01:00
longobject.c [3.11] gh-101266: Revert fix __sizeof__ for subclasses of int (#101638) 2023-02-07 11:44:43 +00:00
memoryobject.c gh-92888: Fix memoryview bad __index__ use after free (GH-92946) 2022-06-18 07:40:39 -07:00
methodobject.c Use static inline function Py_EnterRecursiveCall() (#91988) 2022-05-04 13:30:23 +02:00
moduleobject.c
namespaceobject.c
object.c gh-99845: _PyObject_DictPointer(): fix dictoffset cast (#99922) 2022-12-01 14:07:58 +01:00
obmalloc.c obmalloc: Remove unused variable. (GH-98770) 2022-10-27 09:30:46 -07:00
odictobject.c gh-91320: Use _PyCFunction_CAST() (#92251) 2022-05-03 21:42:14 +02:00
picklebufobject.c gh-91118: Fix docstrings that do not honor --without-doc-strings (#31769) 2022-04-17 20:39:32 -07:00
rangeobject.c
README
setobject.c
sliceobject.c gh-91731: Replace Py_BUILD_ASSERT() with static_assert() (#91730) 2022-04-20 19:26:40 +02:00
structseq.c
tupleobject.c [3.11] gh-101765: Fix SystemError / segmentation fault in iter __reduce__ when internal access of builtins.__dict__ exhausts the iterator (GH-101769) (#102228) 2023-02-24 19:49:59 -08:00
typeobject.c [3.11] GH-101696: invalidate type version tag in _PyStaticType_Dealloc (GH-101697) (#101722) 2023-02-11 14:00:42 +05:30
typeslots.inc
typeslots.py
unicodectype.c
unicodeobject.c gh-101765: unicodeobject: use Py_XDECREF correctly (GH-102283) 2023-02-26 15:09:18 -08:00
unicodetype_db.h
unionobject.c gh-91603: Speed up isinstance/issubclass on union types (GH-91631) 2022-04-28 23:24:19 +08:00
weakrefobject.c [3.11] gh-99184: Bypass instance attribute access in repr of weakref.ref (GH-99244) (#103789) 2023-04-24 19:58:55 +00:00

Source files for various builtin objects