]> granicus.if.org Git - python/commitdiff
Typo fixes
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 4 Aug 2006 20:37:43 +0000 (20:37 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 4 Aug 2006 20:37:43 +0000 (20:37 +0000)
Objects/dictnotes.txt
Objects/dictobject.c

index cb46cb120bd82feeb7134f10d3f6bc45c600d5f0..b0e59a7f10f94686857ad03e665941c26b43fe79 100644 (file)
@@ -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
index 705be078f4e67359d2190322006f23eef0cdb683..f3b6b7fda6a23f12317c4d8bb41c2ef8638ba7f0 100644 (file)
@@ -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