mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
parent
9f79dbfd4a
commit
b184ae860e
8 changed files with 8 additions and 8 deletions
|
@ -960,7 +960,7 @@ The set membership test has traditionally been bound to sequences; an
|
|||
object is a member of a set if the set is a sequence and contains an
|
||||
element equal to that object. However, it is possible for an object
|
||||
to support membership tests without being a sequence. In particular,
|
||||
dictionaries support memership testing as a nicer way of spelling
|
||||
dictionaries support membership testing as a nicer way of spelling
|
||||
\code{\var{key} in \var{dict}}; other mapping types may follow suit.
|
||||
|
||||
For the list and tuple types, \code{\var{x} in \var{y}} is true if and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue