Clarify surjectivity, for diversity's sake (not the mailing-list, though)
This commit is contained in:
parent
0aedc93c61
commit
409b8134ad
|
@ -53,7 +53,8 @@ and other dict-like classes in the standard library. Therefore, this PEP
|
|||
won't rehash the semantics of most TransformDict methods.
|
||||
|
||||
The transformation function needn't be bijective, it can be strictly
|
||||
surjective as in the case-insensitive example::
|
||||
surjective as in the case-insensitive example (in other words, different
|
||||
keys can lookup the same value)::
|
||||
|
||||
>>> d = TransformDict(str.casefold)
|
||||
>>> d['SomeKey'] = 5
|
||||
|
|
Loading…
Reference in New Issue