Henri Salo he...@nerv.fi added the comment:
Please note that there is other similar examples as well. Even on the same page.
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8890
Henri Salo he...@nerv.fi 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
Vinay Sajip vinay_sa...@yahoo.co.uk 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
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org
http://bugs.python.org/issue8890
Henri Salo he...@nerv.fi 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:
http://docs.python.org/library/tempfile.html#tempfile.mkstemp
--
New submission from Henri Salo he...@nerv.fi:
Module logging has dangerous examples as one can see from:
http://docs.python.org/library/logging.html#simple-examples 15.6.1.1:
import logging
LOG_FILENAME = '/tmp/logging_example.out'
Éric Araujo mer...@netwok.org 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
anatoly techtonik techto...@gmail.com 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:
Éric Araujo mer...@netwok.org 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
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Documenation fix checked into trunk (r81680).
--
assignee: d...@python - vinay.sajip
nosy: +vinay.sajip
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Thanks Vinay. You miss a closing paren in your commit.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8890
___
11 matches
Mail list logo