Skip to content

Commit 328168c

Browse files
authored
Merge pull request satwikkansal#158 from rscircus/patch-1
Fix typo in dictionary section
2 parents a39792b + 73a1248 commit 328168c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ What is going on here?
515515
516516
> Equality tests between OrderedDict objects are order-sensitive and are implemented as `list(od1.items())==list(od2.items())`. Equality tests between `OrderedDict` objects and other Mapping objects are order-insensitive like regular dictionaries.
517517
- The reason for this equality is behavior is that it allows `OrderedDict` objects to be directly substituted anywhere a regular dictionary is used.
518-
- Okay, so why did changing the order affect the lenght of the generated `set` object? The answer is the lack of intransitive equality only. Since sets are "unordered" collections of unique elements, the order in which elements are inserted shouldn't matter. But in this case, it does matter. Let's break it down a bit,
518+
- Okay, so why did changing the order affect the length of the generated `set` object? The answer is the lack of intransitive equality only. Since sets are "unordered" collections of unique elements, the order in which elements are inserted shouldn't matter. But in this case, it does matter. Let's break it down a bit,
519519
```py
520520
>>> some_set = set()
521521
>>> some_set.add(dictionary) # these are the mapping objects from the snippets above

0 commit comments

Comments
 (0)