Lines Matching +full:container +full:- +full:rules
3 .. _supporting-cycle-detection:
15 To create a container type, the :c:member:`~PyTypeObject.tp_flags` field of the type object must
24 Objects with a type with this flag set must conform with the rules
26 container objects.
28 Constructors for container types must conform to two rules:
37 rules:
59 Analogous to :c:func:`PyObject_New` but for container objects with the
65 Analogous to :c:func:`PyObject_NewVar` but for container objects with the
77 Adds the object *op* to the set of container objects tracked by the
86 Returns non-zero if the object implements the garbage collector protocol,
120 Remove the object *op* from the set of container objects tracked by the
149 Traversal function for a container object. Implementations must call the
153 object argument. If *visit* returns a non-zero value that value should be
164 and *arg*. If *visit* returns a non-zero value, then return it.
171 Py_VISIT(self->foo);
172 Py_VISIT(self->bar);
191 ---------------------------------------
193 The C-API provides the following functions for controlling