]> granicus.if.org Git - python/commitdiff
[3.6] Fix a typo in the Programming FAQ. (GH-3230) (#3273)
authorGregory P. Smith <greg@krypto.org>
Sun, 3 Sep 2017 20:29:34 +0000 (13:29 -0700)
committerGitHub <noreply@github.com>
Sun, 3 Sep 2017 20:29:34 +0000 (13:29 -0700)
subobjects, not subobjecs.
(cherry picked from commit e9d978fd1bc122395efc91a82b16b2c4b968441d)

Doc/faq/programming.rst

index 9c5e20dcadf5a0792cbb0d5c0654652f94143c2c..7476ce11f4f141189e241ddb22640d67b1173468 100644 (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.