[issue47198] os.stat on windows doesn't take an open file even though os.stat in os.supports_fd
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'> >>> os.stat(fd) Traceback (most recent call last): File "", line 1, in TypeError: stat: path should be string, bytes, os.PathLike or integer, not TextIOWrapper >>> os.stat in os.supports_fd True -- messages: 416535 nosy: snoopyjc priority: normal severity: normal status: open title: os.stat on windows doesn't take an open file even though os.stat in os.supports_fd type: behavior versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue47198> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46947] unicodedata.name gives ValueError for control characters
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 user the same thing perl does, which is the full alias for these. -- ___ Python tracker <https://bugs.python.org/issue46947> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46947] unicodedata.name gives ValueError for control characters
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/issue46947> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46947] unicodedata.name gives ValueError for control characters
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') Traceback (most recent call last): File "", line 1, in ValueError: no such name Where unicodedata.lookup clearly knows the names for these characters: >>> unicodedata.lookup('NULL') '\x00' >>> unicodedata.lookup('TAB') '\t' -- components: Library (Lib) messages: 414672 nosy: snoopyjc priority: normal severity: normal status: open title: unicodedata.name gives ValueError for control characters type: behavior versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue46947> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40467] subprocess: replacement shell on windows with executable="..." arg
Joe Cool added the comment: Proposed solution: if comspec.endswith('sh.exe') or comspec.endswith('sh'):# issue 40467 args = '{} -c "{}"'.format (comspec, args) # issue 40467 else: # issue 40467 args = '{} /c "{}"'.format (comspec, args) -- nosy: +snoopyjc ___ Python tracker <https://bugs.python.org/issue40467> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39661] TimedRotatingFileHandler doesn’t handle DST switch with daily rollover
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/issue39661> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39661] TimedRotatingFileHandler doesn’t handle DST switch with daily rollover
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: 362140 nosy: snoopyjc priority: normal severity: normal status: open title: TimedRotatingFileHandler doesn’t handle DST switch with daily rollover type: behavior versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue39661> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com