Lines Matching refs:iterable
52 the constructor functions work with any iterable Python object.
86 .. c:function:: PyObject* PySet_New(PyObject *iterable)
88 Return a new :class:`set` containing objects returned by the *iterable*. The
89 *iterable* may be *NULL* to create a new empty set. Return the new set on
90 success or *NULL* on failure. Raise :exc:`TypeError` if *iterable* is not
91 actually iterable. The constructor is also useful for copying a set
95 .. c:function:: PyObject* PyFrozenSet_New(PyObject *iterable)
97 Return a new :class:`frozenset` containing objects returned by the *iterable*.
98 The *iterable* may be *NULL* to create a new empty frozenset. Return the new
99 set on success or *NULL* on failure. Raise :exc:`TypeError` if *iterable* is
100 not actually iterable.