Christophe Kalt k...@taranis.org added the comment:
nice, thank you!
--
nosy: +kalt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13966
Christophe Kalt k...@taranis.org added the comment:
Hah.. was just about to report this. I'm in the midst of converting a bunch of
scripts from optparse to argparse, and this is one of the problems I'm hitting.
--
nosy: +kalt
___
Python tracker rep
New submission from Christophe Kalt k...@taranis.org:
logging.RotatingFileHandler.doRollover() can fail leaving the handler with a
closed filehandle, causing all subsequent logging attempts to fail:
import logging
import logging.handlers
logging.getLogger().addHandler
Christophe Kalt k...@taranis.org added the comment:
I haven't had a chance to build Python to check, but from the test output I
suspect the problem to be different on FreeBSD.
--
Added file: http://bugs.python.org/file17750/unnamed
___
Python tracker
Christophe Kalt pyt...@ote.taranis.org added the comment:
This is on Solaris 10, but I also see it on Solaris 8 w/ Python 2.4.
Just tried Python 3.6.1, and it doesn't seem to have that problem.
Python 2.7b2 has the problem.
--
___
Python tracker rep
Christophe Kalt pyt...@ote.taranis.org added the comment:
Antoine:
I'm not sure what the expected behaviour should be either, this is certainly
for others more familiar with Python than I to decide. Although I am certainly
annoyed that the current behaviour differs between Solaris and Linux
Christophe Kalt k...@taranis.org added the comment:
FreeBSD is yet another beast:
$ uname -rs
FreeBSD 8.0-STABLE
$ python -V
Python 2.5.5
$ python readlines.py
read : []
readlines: []
readline :
--
___
Python tracker rep...@bugs.python.org
New submission from Christophe Kalt pyt...@ote.taranis.org:
The following snippet of code is a concise way to exhibit the problem:
import os
wr = open('/tmp/test', 'w')
wr.write('oink\noink\n')
rd = open('/tmp/test', 'r')
rdlns = open('/tmp/test', 'r')
# first, read til EOF is reached (which
Christophe Kalt [EMAIL PROTECTED] added the comment:
Any chance of this making it in sometime?
The current behaviour is rather limiting/annoying.
--
nosy: +kalt
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1734346