mirror of
https://github.com/python/cpython.git
synced 2025-10-01 21:02:15 +00:00
Fix typo in Include/objimpl.h, the word "has" was missing (GH-5568) (GH-5569)
It now reads: ...be aware that Python has no control over...
(cherry picked from commit 517da1e58f
)
Co-authored-by: Alexey <forestbiiird@gmail.com>
This commit is contained in:
parent
ba4f218657
commit
972edd91cf
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ must use the platform malloc heap(s), or shared memory, or C++ local storage or
|
||||||
operator new), you must first allocate the object with your custom allocator,
|
operator new), you must first allocate the object with your custom allocator,
|
||||||
then pass its pointer to PyObject_{Init, InitVar} for filling in its Python-
|
then pass its pointer to PyObject_{Init, InitVar} for filling in its Python-
|
||||||
specific fields: reference count, type pointer, possibly others. You should
|
specific fields: reference count, type pointer, possibly others. You should
|
||||||
be aware that Python no control over these objects because they don't
|
be aware that Python has no control over these objects because they don't
|
||||||
cooperate with the Python memory manager. Such objects may not be eligible
|
cooperate with the Python memory manager. Such objects may not be eligible
|
||||||
for automatic garbage collection and you have to make sure that they are
|
for automatic garbage collection and you have to make sure that they are
|
||||||
released accordingly whenever their destructor gets called (cf. the specific
|
released accordingly whenever their destructor gets called (cf. the specific
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue