Visitar URL original
gh-106446: Fix failed doctest in stdtypes by CharlieZhao95 路 Pull Request #106447 路 python/cpython 路 GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix set-like objects doctest
  • Loading branch information
CharlieZhao95 committed Jul 10, 2023
commit bc978eb17c117dde5f201c52e06c6f43aa9686a5
2 changes: 1 addition & 1 deletion Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4789,7 +4789,7 @@ An example of dictionary view usage::
>>> keys ^ {'sausage', 'juice'}
{'juice', 'sausage', 'bacon', 'spam'}
>>> keys | ['juice', 'juice', 'juice']
{'juice', 'sausage', 'bacon', 'spam', 'eggs'}
{'bacon', 'spam', 'juice'}

>>> # get back a read-only proxy for the original dictionary
>>> values.mapping
Expand Down