mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
merge with 3.4
This commit is contained in:
commit
4ae7839e19
1 changed files with 6 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ Type Objects
|
||||||
|
|
||||||
.. versionadded:: 3.2
|
.. versionadded:: 3.2
|
||||||
|
|
||||||
|
|
||||||
.. c:function:: void PyType_Modified(PyTypeObject *type)
|
.. c:function:: void PyType_Modified(PyTypeObject *type)
|
||||||
|
|
||||||
Invalidate the internal lookup cache for the type and all of its
|
Invalidate the internal lookup cache for the type and all of its
|
||||||
|
|
@ -67,6 +68,11 @@ Type Objects
|
||||||
|
|
||||||
Return true if *a* is a subtype of *b*.
|
Return true if *a* is a subtype of *b*.
|
||||||
|
|
||||||
|
This function only checks for actual subtypes, which means that
|
||||||
|
:meth:`~type.__subclasscheck__` is not called on *b*. Call
|
||||||
|
:c:func:`PyObject_IsSubclass` to do the same check that :func:`issubclass`
|
||||||
|
would do.
|
||||||
|
|
||||||
|
|
||||||
.. c:function:: PyObject* PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems)
|
.. c:function:: PyObject* PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue