[Python-checkins] python/dist/src/Objects setobject.c,1.34,1.35
rhettinger@users.sourceforge.net
rhettinger at users.sourceforge.net
Sun Jul 31 15:09:30 CEST 2005
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32542
Modified Files:
setobject.c
Log Message:
Fix frozenset() ref count and a comment typo.
Index: setobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/setobject.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- setobject.c 31 Jul 2005 01:33:10 -0000 1.34
+++ setobject.c 31 Jul 2005 13:09:28 -0000 1.35
@@ -735,8 +735,7 @@
if (type == &PyFrozenSet_Type) {
if (emptyfrozenset == NULL)
emptyfrozenset = make_new_set(type, NULL);
- else
- Py_INCREF(emptyfrozenset);
+ Py_INCREF(emptyfrozenset);
return emptyfrozenset;
}
} else if (PyFrozenSet_CheckExact(iterable)) {
@@ -803,7 +802,7 @@
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 original the inputs).
+ into one of the original inputs).
*/
static void
More information about the Python-checkins
mailing list