Fix a typo in the Programming FAQ. (#3230)

subobjects, not subobjecs.
This commit is contained in:
Gregory P. Smith 2017-08-28 13:43:26 -07:00 committed by GitHub
parent 07f1658aa0
commit e9d978fd1b
1 changed files with 1 additions and 1 deletions

View File

@ -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.