diff options
author | Gregory P. Smith <greg@krypto.org> | 2017-08-28 20:43:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-28 20:43:26 (GMT) |
commit | e9d978fd1bc122395efc91a82b16b2c4b968441d (patch) | |
tree | 89f2eed4c0bd9b830b0a40cf9f525c6ae684eecb /Doc/faq | |
parent | 07f1658aa09f6798793c473c72b2951b7fefe220 (diff) | |
download | cpython-e9d978fd1bc122395efc91a82b16b2c4b968441d.zip cpython-e9d978fd1bc122395efc91a82b16b2c4b968441d.tar.gz cpython-e9d978fd1bc122395efc91a82b16b2c4b968441d.tar.bz2 |
Fix a typo in the Programming FAQ. (#3230)
subobjects, not subobjecs.
Diffstat (limited to 'Doc/faq')
-rw-r--r-- | Doc/faq/programming.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index d9bdb21..1022373 100644 --- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -1638,7 +1638,7 @@ collected. Despite the cycle collector, it's still a good idea to define an explicit ``close()`` method on objects to be called whenever you're done with them. The -``close()`` method can then remove attributes that refer to subobjecs. Don't +``close()`` method can then remove attributes that refer to subobjects. Don't call :meth:`__del__` directly -- :meth:`__del__` should call ``close()`` and ``close()`` should make sure that it can be called more than once for the same object. |