[issue8890] Module logging has dangerous examples

2010-06-04 Thread Henri Salo
Henri Salo added the comment: Please review the changes for the quality of the documentation. There probably is still more places to change. References can be made to: -- ___ Python tr

[issue8890] Module logging has dangerous examples

2010-06-04 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the listing Henri. Not all of these examples have to be changed; I’ll review them in some days if you want. -- ___ Python tracker ___ _

[issue8890] Module logging has dangerous examples

2010-06-04 Thread Vinay Sajip
Vinay Sajip added the comment: Other logging cases contained /tmp/ has now been removed, the missing parenthesis added and the result checked in to trunk (r81684). I'll keep the issue open for the cases which remain in the other documentation. but remove myself from the assigned-to and chang

[issue8890] Module logging has dangerous examples

2010-06-04 Thread Henri Salo
Henri Salo added the comment: We should review all of these: install/index.rst: python setup.py build --build-base=/tmp/pybuild/foo-1.0 install/index.rst: python setup.py install --install-base=/tmp install/index.rst:would install pure modules to :file:`{/tmp/python/lib}` in the first case

[issue8890] Module logging has dangerous examples

2010-06-04 Thread Henri Salo
Henri Salo added the comment: Please note that there is other similar examples as well. Even on the same page. -- status: closed -> open ___ Python tracker ___ __

[issue8890] Module logging has dangerous examples

2010-06-03 Thread Éric Araujo
Éric Araujo added the comment: Thanks Vinay. You miss a closing paren in your commit. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue8890] Module logging has dangerous examples

2010-06-03 Thread Vinay Sajip
Vinay Sajip added the comment: Documenation fix checked into trunk (r81680). -- assignee: d...@python -> vinay.sajip nosy: +vinay.sajip resolution: -> fixed status: open -> closed ___ Python tracker __

[issue8890] Module logging has dangerous examples

2010-06-03 Thread Éric Araujo
Éric Araujo added the comment: Nice, this example doesn’t require explaining tempfile and is shorter. Add a notice before the code that you need to be in a directory with write rights for this to work and I’m +1. -- ___ Python tracker

[issue8890] Module logging has dangerous examples

2010-06-03 Thread anatoly techtonik
anatoly techtonik added the comment: import logging - LOG_FILENAME = '/tmp/logging_example.out' + LOG_FILENAME = 'example.log' logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG) logging.debug('This message should go to the log file') -- nosy: +techtonik

[issue8890] Module logging has dangerous examples

2010-06-03 Thread Éric Araujo
Éric Araujo added the comment: Would you be kind enough to provide a doc patch that would advertise using the tempfile module? -- assignee: -> d...@python components: +Documentation -None nosy: +d...@python, merwok versions: +Python 2.7, Python 3.1, Python 3.2 ___

[issue8890] Module logging has dangerous examples

2010-06-03 Thread Henri Salo
New submission from Henri Salo : Module logging has dangerous examples as one can see from: 15.6.1.1: > import logging > LOG_FILENAME = '/tmp/logging_example.out' > logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG) > log