[issue8890] Use tempfile instead of /tmp in examples

2013-02-23 Thread Geoff Wilson
Geoff Wilson added the comment: Patch for 2.7, with most references to /tmp removed or replaced. References remain in Doc/install/index.rst and Doc/library/rexec.rst as they seem to make sense in context. -- nosy: +gmwils Added file: http://bugs.python.org/file29183/Issue8890.patch

[issue8890] Use tempfile instead of /tmp in examples

2013-02-23 Thread Geoff Wilson
Geoff Wilson added the comment: Attaching patch for 3.2 (Issue8890-3.2.patch) -- Added file: http://bugs.python.org/file29190/Issue8890-3.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8890

[issue8890] Use tempfile instead of /tmp in examples

2013-02-23 Thread Geoff Wilson
Geoff Wilson added the comment: Attaching patch for 3.3 that also works for 3.4/default (Issue8890-3.3.patch) -- Added file: http://bugs.python.org/file29191/Issue8890-3.3.patch ___ Python tracker rep...@bugs.python.org

[issue8890] Use tempfile instead of /tmp in examples

2013-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 488957f9b664 by Petri Lehtinen in branch '2.7': Issue #8890: Stop advertising an insecure use of /tmp in docs http://hg.python.org/cpython/rev/488957f9b664 New changeset 7556601180c8 by Petri Lehtinen in branch '3.2': Issue #8890: Stop advertising

[issue8890] Use tempfile instead of /tmp in examples

2013-02-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Applied, thanks! -- resolution: accepted - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8890

[issue8890] Use tempfile instead of /tmp in examples

2012-03-01 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: I think this issue was closed too hastily. Only the logging documentation has been fixed. @grubert: I agree with the assumption that /tmp is mostly used because it's writable. In my opinion, the directory could just be left out and only leave

[issue8890] Use tempfile instead of /tmp in examples

2011-06-26 Thread Dave King
Dave King d...@davbo.org added the comment: Spotted another use of /tmp/ in the logging howto. Attached a diff. -- nosy: +davbo Added file: http://bugs.python.org/file22483/tmp_logging_howto.diff ___ Python tracker rep...@bugs.python.org

[issue8890] Use tempfile instead of /tmp in examples

2011-06-26 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 1ed71544fceb by Raymond Hettinger in branch '3.2': Issue #8890: Remove /tmp from examples. http://hg.python.org/cpython/rev/1ed71544fceb New changeset fcf242243d46 by Raymond Hettinger in branch 'default': Issue #8890: Remove /tmp

[issue8890] Use tempfile instead of /tmp in examples

2011-06-26 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8890 ___ ___

[issue8890] Use tempfile instead of /tmp in examples

2011-06-26 Thread engelbert gruber
engelbert gruber grub...@users.sourceforge.net added the comment: Assumption: /tmp is used in examples so the examples work because /tmp is always writeable module tempfile is for creating temporary files, the name of which is unimported, when a user is trying code from documentation it

[issue8890] Use tempfile instead of /tmp in examples

2010-11-22 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Actually, I don't think it's a great idea in general to use temporary files for logging, though of course there are specific cases where one might do this. So for the logging examples in the docs (which used '/tmp/XXX') I just removed the

[issue8890] Use tempfile instead of /tmp in examples

2010-11-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Whatsnew documents are not edited after the corresponding release is done. Using either /home/user or tempfile depending on the example seems good to me. -- stage: needs patch - patch review ___

[issue8890] Use tempfile instead of /tmp in examples

2010-11-22 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: On Mon, Nov 22, 2010 at 3:59 PM, Éric Araujo rep...@bugs.python.org wrote: Using either /home/user or tempfile depending on the example seems good to me. There is no /home/user on Windows. --

[issue8890] Use tempfile instead of /tmp in examples

2010-11-21 Thread Mauro Navarro Baraldi
Mauro Navarro Baraldi mauro.bara...@gmail.com added the comment: Reviewing this thread and talking with another friends, I thought that the pythonic way to solve it should be use the tempfile module. And here is a suggestion using the logging module with tempfile. import logging import

[issue8890] Use tempfile instead of /tmp in examples

2010-11-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - d...@python components: +Documentation -Demos and Tools ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8890 ___

[issue8890] Use tempfile instead of /tmp in examples

2010-11-20 Thread Mauro Navarro Baraldi
Mauro Navarro Baraldi mauro.bara...@gmail.com added the comment: Replace to most use of /tmp/tempfile for just tempfile, as sugested before. -- keywords: +patch nosy: +maurobaraldi Added file: http://bugs.python.org/file19698/py3k-docs.patch ___

[issue8890] Use tempfile instead of /tmp in examples

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Who wants to make a patch to update the documentation? For command-line examples (like “python setup.py install --install-base /tmp”), someone has to research what standard variable to use (TMPDIR, TMP, something else?). -- keywords:

[issue8890] Use tempfile instead of /tmp in examples

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch submission guidelines are found at http://www.python.org/dev/patches/ Since patches are made for the py3k branch, some matches in Henri’s grep won’t get patched: bsddb, compiler, posixfile and rexec have been removed. The person that