[docs] [issue31057] pydoc for tempfile.TemporaryDirectory should say it returns the name

R. David Murray report at bugs.python.org
Thu Jul 27 13:22:57 EDT 2017


R. David Murray added the comment:

It actually returns the path, since "name" often means the last component of the path.  Just saying "path" might be confused with pathlib, though.  So I guess we'd have to say "returning its path as a string", which sounds awkward.  The original wording is in fact accurate, since most people will understand "the directory" as the directory path as a string.  I'm not sure this change would be an improvement.  I'm not saying no, though.  I guess you'd say I'm -0 on changing it.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31057>
_______________________________________


More information about the docs mailing list