New submission from Joe Cool :
os.stat on windows doesn't take an open file even though os.stat in
os.supports_fd
>>> fd = open('tmp.tmp', 'w')
>>> fd
<_io.TextIOWrapper name='tmp.tmp' mode='w' encoding='cp1252
Joe Cool added the comment:
My recommendation would be to add a keyword parameter, defaulting to False, to
name(), something like give_full_alias, or maybe errors=“give_full_alias” like
the IO functions.
In the meantime, as the author of perllib, I had to make my own dict to return
to the
Joe Cool added the comment:
Note: This is an issue for all chars in the ordinal range 0 thru 31.
--
___
Python tracker
<https://bugs.python.org/issue46
New submission from Joe Cool :
unicodedata.name gives ValueError for control characters, for example:
>>> unicodedata.name('\x00')
Traceback (most recent call last):
File "", line 1, in
ValueError: no such name
>>> unicodedata.name('\t')
Trac
Joe Cool added the comment:
Proposed solution:
if comspec.endswith('sh.exe') or comspec.endswith('sh'):#
issue 40467
args = '{} -c "{}"'.format (comspec, args)
Joe Cool added the comment:
Never mind. I was looking for the DST code in computeRollover, and I found it
in doRollover.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
New submission from Joe Cool :
TimedRotatingFileHandler doesn’t handle the switch to/from DST when using
daily/midnight rotation. It does not adjust the rollover time so the rollover
will be off by an hour.
Parameters: when=‘midnight’, utc=False
--
components: Library (Lib)
messages