[Python-checkins] cpython: Update out-of-date comments.

raymond.hettinger python-checkins at python.org
Mon Jan 26 01:44:19 CET 2015


https://hg.python.org/cpython/rev/b132091ad95b
changeset: 94280:b132091ad95b
user: Raymond Hettinger <python at rcn.com>
date: Sun Jan 25 16:27:40 2015 -0800
summary:
 Update out-of-date comments.
files:
 Objects/setobject.c | 8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/Objects/setobject.c b/Objects/setobject.c
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -23,7 +23,7 @@
 
 All arithmetic on hash should ignore overflow.
 
- Unlike the dictionary implementation, the lookkey functions can return
+ Unlike the dictionary implementation, the lookkey function can return
 NULL if the rich comparison returns an error.
 */
 
@@ -1028,10 +1028,8 @@
 t=set(a); a.clear(); a.update(b); b.clear(); b.update(t); del t
 
 The function always succeeds and it leaves both objects in a stable state.
- Useful for creating temporary frozensets from sets for membership testing
- in __contains__(), discard(), and remove(). Also useful for operations
- that update in-place (by allowing an intermediate result to be swapped
- into one of the original inputs).
+ Useful for operations that update in-place (by allowing an intermediate
+ result to be swapped into one of the original inputs).
 */
 
 static void
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /