mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
SF patch #838938: Typos in the docs (Extending/Embedding + Python/C API)
(Contributed by Florent Rougon.)
This commit is contained in:
parent
e3d5f98180
commit
2619c9ec89
4 changed files with 8 additions and 9 deletions
|
@ -537,7 +537,7 @@ and assign them to the \member{tp_methods} slot:
|
|||
Noddy_methods, /* tp_methods */
|
||||
\end{verbatim}
|
||||
|
||||
Note that used the \constant{METH_NOARGS} flag to indicate that the
|
||||
Note that we used the \constant{METH_NOARGS} flag to indicate that the
|
||||
method is passed no arguments.
|
||||
|
||||
Finally, we'll make our type usable as a base class. We've written
|
||||
|
@ -683,7 +683,7 @@ when objects are involved in cycles. For example, consider:
|
|||
\end{verbatim}
|
||||
|
||||
In this example, we create a list that contains itself. When we delete
|
||||
it, it still has a reference from itself. It's reference count doesn't
|
||||
it, it still has a reference from itself. Its reference count doesn't
|
||||
drop to zero. Fortunately, Python's cyclic-garbage collector will
|
||||
eventually figure out that the list is garbage and free it.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue