Liking cljdoc? Tell your friends :D

libpython-clj.jna.concrete.set


PyFrozenSet_Checkclj

(PyFrozenSet_Check p)

Return true if p is a frozenset object or an instance of a subtype.

Return true if p is a frozenset object or an instance of a subtype.
sourceraw docstring

PyFrozenSet_Newclj

(PyFrozenSet_New iterable)

Return value: New reference.

Return a new frozenset containing objects returned by the iterable. The iterable may be NULL to create a new empty frozenset. Return the new set on success or NULL on failure. Raise TypeError if iterable is not actually iterable.

Return value: New reference.

Return a new frozenset containing objects returned by the iterable. The iterable may
be NULL to create a new empty frozenset. Return the new set on success or NULL on
failure. Raise TypeError if iterable is not actually iterable.
sourceraw docstring

PySet_Addclj

(PySet_Add set key)

Add key to a set instance. Also works with frozenset instances (like PyTuple_SetItem() it can be used to fill-in the values of brand new frozensets before they are exposed to other code). Return 0 on success or -1 on failure. Raise a TypeError if the key is unhashable. Raise a MemoryError if there is no room to grow. Raise a SystemError if set is not an instance of set or its subtype.

Add key to a set instance. Also works with frozenset instances (like
PyTuple_SetItem() it can be used to fill-in the values of brand new frozensets before
they are exposed to other code). Return 0 on success or -1 on failure. Raise a
TypeError if the key is unhashable. Raise a MemoryError if there is no room to
grow. Raise a SystemError if set is not an instance of set or its subtype.
sourceraw docstring

PySet_Checkclj

(PySet_Check p)

Return true if p is a set object or an instance of a subtype.

Return true if p is a set object or an instance of a subtype.
sourceraw docstring

PySet_Clearclj

(PySet_Clear set)

Empty an existing set of all elements.

Empty an existing set of all elements.
sourceraw docstring

PySet_Containsclj

(PySet_Contains anyset key)

Return 1 if found, 0 if not found, and -1 if an error is encountered. Unlike the Python contains() method, this function does not automatically convert unhashable sets into temporary frozensets. Raise a TypeError if the key is unhashable. Raise PyExc_SystemError if anyset is not a set, frozenset, or an instance of a subtype.

Return 1 if found, 0 if not found, and -1 if an error is encountered. Unlike the
Python __contains__() method, this function does not automatically convert unhashable
sets into temporary frozensets. Raise a TypeError if the key is unhashable. Raise
PyExc_SystemError if anyset is not a set, frozenset, or an instance of a subtype.
sourceraw docstring

PySet_Discardclj

(PySet_Discard set key)

Return 1 if found and removed, 0 if not found (no action taken), and -1 if an error is encountered. Does not raise KeyError for missing keys. Raise a TypeError if the key is unhashable. Unlike the Python discard() method, this function does not automatically convert unhashable sets into temporary frozensets. Raise PyExc_SystemError if set is not an instance of set or its subtype.

Return 1 if found and removed, 0 if not found (no action taken), and -1 if an error
is encountered. Does not raise KeyError for missing keys. Raise a TypeError if the key
is unhashable. Unlike the Python discard() method, this function does not
automatically convert unhashable sets into temporary frozensets. Raise
PyExc_SystemError if set is not an instance of set or its subtype.
sourceraw docstring

PySet_Newclj

(PySet_New iterable)

Return value: New reference.

Return a new set containing objects returned by the iterable. The iterable may be NULL to create a new empty set. Return the new set on success or NULL on failure. Raise TypeError if iterable is not actually iterable. The constructor is also useful for copying a set (c=set(s)).

Return value: New reference.

Return a new set containing objects returned by the iterable. The iterable may be
NULL to create a new empty set. Return the new set on success or NULL on
failure. Raise TypeError if iterable is not actually iterable. The constructor is
also useful for copying a set (c=set(s)).
sourceraw docstring

PySet_Popclj

(PySet_Pop set)

Return value: New reference.

Return a new reference to an arbitrary object in the set, and removes the object from the set. Return NULL on failure. Raise KeyError if the set is empty. Raise a SystemError if set is not an instance of set or its subtype.

Return value: New reference.

Return a new reference to an arbitrary object in the set, and removes the object from
the set. Return NULL on failure. Raise KeyError if the set is empty. Raise a
SystemError if set is not an instance of set or its subtype.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close