Kaydet (Commit) d4097353 authored tarafından Gregory P. Smith's avatar Gregory P. Smith Kaydeden (comit) GitHub

[3.6] Fix a typo in the Programming FAQ. (GH-3230) (#3273)

subobjects, not subobjecs.
(cherry picked from commit e9d978fd)
üst 5cbca023
...@@ -1638,7 +1638,7 @@ collected. ...@@ -1638,7 +1638,7 @@ collected.
Despite the cycle collector, it's still a good idea to define an explicit 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 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 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 ``close()`` should make sure that it can be called more than once for the same
object. object.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment