mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #22823: Use set literals instead of creating a set from a list
This commit is contained in:
parent
bf764a1912
commit
df1b699447
10 changed files with 19 additions and 20 deletions
|
@ -859,7 +859,7 @@ For the simplest code, use the :func:`dump` and :func:`load` functions. ::
|
|||
data = {
|
||||
'a': [1, 2.0, 3, 4+6j],
|
||||
'b': ("character string", b"byte string"),
|
||||
'c': set([None, True, False])
|
||||
'c': {None, True, False}
|
||||
}
|
||||
|
||||
with open('data.pickle', 'wb') as f:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue