From 636d8c6cd5d85f6cf97d6eddf17a321ef2f0f63b Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Fri, 8 Aug 2025 16:02:41 +0100 Subject: [PATCH] PEP 802: Improve ``repr()`` & ``str()`` example --- peps/pep-0802.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/peps/pep-0802.rst b/peps/pep-0802.rst index 8c3e1c647e1..c67a28bb892 100644 --- a/peps/pep-0802.rst +++ b/peps/pep-0802.rst @@ -121,8 +121,12 @@ The representation and string forms of the empty set will change to ``'{/}'``. >>> repr({/}) '{/}' + >>> repr(set()) + '{/}' >>> str({/}) '{/}' + >>> str(set()) + '{/}' There will be no behavioural changes to :py:class:`set` objects.