[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2014-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset b5fe07d39e16 by R David Murray in branch '3.3': #14515: clarify that TemporaryDirectory's __enter__ returns the name. http://hg.python.org/cpython/rev/b5fe07d39e16 New changeset 7b7e17723787 by R David Murray in branch 'default': #14515: clarify

[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2014-02-05 Thread R. David Murray
R. David Murray added the comment: Just ran into this again :). Committed a patch with wording clarified based on Serhiy's feedback (I say 'target of the as clause of the with statement'.) -- stage: patch review - committed/rejected status: open - closed

[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2014-01-31 Thread Yury Selivanov
Yury Selivanov added the comment: bump? -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14515 ___ ___ Python-bugs-list mailing

[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2013-03-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, terry.reedy stage: needs patch - patch review versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14515

[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't understand a phrase and is assigned to the target of the as clause on entry to a context. Typo? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14515

[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2013-02-14 Thread R. David Murray
R. David Murray added the comment: The patch is missing the markup for the 'as' keyword (it should read :keyword:`as`). If that were added, would the sentence make sense to you? Would it be clearer to say that the directory name is returned by the __enter__ method? --

[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2013-02-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Aha, now it makes a sense to me. I don't know which variant will be clear. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14515 ___

[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2012-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I misread the docs. They aren't wrong, but it is still the case that they don't mention that the directory name is what you get on entry to the context, which is what led to my confusion. Here's a patch. -- keywords: +patch

[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2012-04-11 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Change looks fine to me - go ahead and commit it :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14515 ___

[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2012-04-05 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: The title pretty much says it all. I believe the behavior is correct (more useful than returning an object that is only useful for obtaining the name) even though it is unusual for context managers. In any case there is plenty of