~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Objects/setobject.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1339
1339
}
1340
1340
 
1341
1341
PyDoc_STRVAR(intersection_doc,
1342
 
"Return the intersection of two sets as a new set.\n\
 
1342
"Return the intersection of two or more sets as a new set.\n\
1343
1343
\n\
1344
 
(i.e. all elements that are in both sets.)");
 
1344
(i.e. elements that are common to all of the sets.)");
1345
1345
 
1346
1346
static PyObject *
1347
1347
set_intersection_update(PySetObject *so, PyObject *other)
2102
2102
};
2103
2103
 
2104
2104
PyDoc_STRVAR(set_doc,
2105
 
"set(iterable) --> set object\n\
 
2105
"set() -> new empty set object\n\
 
2106
set(iterable) -> new set object\n\
2106
2107
\n\
2107
2108
Build an unordered collection of unique elements.");
2108
2109
 
2200
2201
};
2201
2202
 
2202
2203
PyDoc_STRVAR(frozenset_doc,
2203
 
"frozenset(iterable) --> frozenset object\n\
 
2204
"frozenset() -> empty frozenset object\n\
 
2205
frozenset(iterable) -> frozenset object\n\
2204
2206
\n\
2205
2207
Build an immutable unordered collection of unique elements.");
2206
2208