diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -97,7 +97,8 @@ and all its contents are removed from the filesystem. The directory name can be retrieved from the :attr:`name` attribute - of the returned object. + of the returned object, and is assigned to the target of the + as clause on entry to a context. The directory can be explicitly cleaned up by calling the :func:`cleanup` method.