diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-08-04 20:37:43 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-08-04 20:37:43 (GMT) |
commit | 0067b5fa2b565f6c5e19a696d5f81955062a5cf2 (patch) | |
tree | d4563203e31a130c87abf227feb8ce7ab2605e73 | |
parent | db7b443d8a633b0ddb5f14a57746b518170d560b (diff) | |
download | cpython-0067b5fa2b565f6c5e19a696d5f81955062a5cf2.zip cpython-0067b5fa2b565f6c5e19a696d5f81955062a5cf2.tar.gz cpython-0067b5fa2b565f6c5e19a696d5f81955062a5cf2.tar.bz2 |
Typo fixes
-rw-r--r-- | Objects/dictnotes.txt | 2 | ||||
-rw-r--r-- | Objects/dictobject.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Objects/dictnotes.txt b/Objects/dictnotes.txt index cb46cb1..b0e59a7 100644 --- a/Objects/dictnotes.txt +++ b/Objects/dictnotes.txt @@ -243,7 +243,7 @@ kept just for iteration. Caching Lookups --------------- The idea is to exploit key access patterns by anticipating future lookups -based of previous lookups. +based on previous lookups. The simplest incarnation is to save the most recently accessed entry. This gives optimal performance for use cases where every get is followed diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 705be07..f3b6b7f 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -532,7 +532,7 @@ dictresize(dictobject *mp, Py_ssize_t minused) /* Note that, for historical reasons, PyDict_GetItem() suppresses all errors * that may occur (originally dicts supported only string keys, and exceptions * weren't possible). So, while the original intent was that a NULL return - * meant the key wasn't present, it reality it can mean that, or that an error + * meant the key wasn't present, in reality it can mean that, or that an error * (suppressed) occurred while computing the key's hash, or that some error * (suppressed) occurred when comparing keys in the dict's internal probe * sequence. A nasty example of the latter is when a Python-coded comparison |