Skip to content

Commit aaa72ee

Browse files
authored
PEP 802: Improve repr() & str() example (#4534)
1 parent 8e4f0b0 commit aaa72ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

peps/pep-0802.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,12 @@ The representation and string forms of the empty set will change to ``'{/}'``.
121121
122122
>>> repr({/})
123123
'{/}'
124+
>>> repr(set())
125+
'{/}'
124126
>>> str({/})
125127
'{/}'
128+
>>> str(set())
129+
'{/}'
126130
127131
There will be no behavioural changes to :py:class:`set` objects.
128132

0 commit comments

Comments
 (0)