mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Docs: Fix duplicate word typos (GH-135958)
This commit is contained in:
parent
58a42dea97
commit
34ce1920ca
13 changed files with 15 additions and 15 deletions
|
@ -277,7 +277,7 @@ be an instance of a subclass.
|
|||
The explicit cast to ``CustomObject *`` above is needed because we defined
|
||||
``Custom_dealloc`` to take a ``PyObject *`` argument, as the ``tp_dealloc``
|
||||
function pointer expects to receive a ``PyObject *`` argument.
|
||||
By assigning to the the ``tp_dealloc`` slot of a type, we declare
|
||||
By assigning to the ``tp_dealloc`` slot of a type, we declare
|
||||
that it can only be called with instances of our ``CustomObject``
|
||||
class, so the cast to ``(CustomObject *)`` is safe.
|
||||
This is object-oriented polymorphism, in C!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue