Home
last modified time | relevance | path

Searched refs:subclass_of (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Tools/clinic/
Dclinic.py2468 subclass_of = None variable in CConverter
2603 elif self.subclass_of:
2604 list.append(self.subclass_of)
2690 if self.subclass_of in type_checks:
2691 typecheck, typename = type_checks[self.subclass_of]
2708 subclass_of=self.subclass_of, cast=cast,
3200 def converter_init(self, *, converter=None, type=None, subclass_of=None): argument
3202 if subclass_of:
3206 elif subclass_of:
3208 self.subclass_of = subclass_of
/external/python/cpython3/Lib/test/
Dclinic.test12 c: object(subclass_of="&PyUnicode_Type")
135 a: object(subclass_of="&PyLong_Type")
136 b: object(subclass_of="&PyTuple_Type")
137 c: object(subclass_of="&PyList_Type")
138 d: object(subclass_of="&PySet_Type")
139 e: object(subclass_of="&PyFrozenSet_Type")
140 f: object(subclass_of="&PyDict_Type")
141 g: object(subclass_of="&PyUnicode_Type")
142 h: object(subclass_of="&PyBytes_Type")
143 i: object(subclass_of="&PyByteArray_Type")
[all …]
/external/python/cpython3/Doc/howto/
Dclinic.rst797 ``subclass_of``
846 ``'O!'`` ``object(subclass_of='&PySomething_Type')``
913 argument is either ``converter`` (for ``O&``), ``subclass_of`` (for ``O!``),
916 When using ``subclass_of``, you may also want to use the other
920 to use the converter ``object(type='PyUnicodeObject *', subclass_of='&PyUnicode_Type')``.