[issue24505] shutil.which wrong result on Windows

2021-03-19 Thread Eryk Sun
Eryk Sun added the comment: Regarding Toby's patch: Probably _is_windows_nt_internal_command() isn't needed or desired. It's more of a command-line parsing issue, rather than a file-search issue. For example, CMD will search for an internal name if it's quoted in double quotes in the comman

[issue37894] [win] shutil.which can not find the path if 'cmd' include directory path and not include extension name

2021-03-19 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> shutil.which wrong result on Windows ___ Python tracker

[issue28188] os.putenv should support bytes arguments on Windows

2021-03-19 Thread Eryk Sun
Eryk Sun added the comment: I thought this was a good idea at the time, but a core dev never took up the mantle in over 4 years, and no one else showed interest. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___

[issue33140] shutil.chown on Windows

2021-03-19 Thread Eryk Sun
Eryk Sun added the comment: Apparently there's no one else interested in implementing shutil.chown() in Windows. Okay, but as long as that's the case, the definition should be skipped in Windows, which is an easy problem. -- components: -IO keywords: +easy versions: +Python 3.10, Py

[issue33140] shutil.chown should not be defined in Windows

2021-03-19 Thread Eryk Sun
Change by Eryk Sun : -- title: shutil.chown on Windows -> shutil.chown should not be defined in Windows ___ Python tracker ___ ___ P

[issue28168] Use _winapi.WaitForMultipleObjects in Popen.wait()

2021-03-19 Thread Eryk Sun
Eryk Sun added the comment: I'm no longer interested in solving the SIGINT event problem locally at the wait site. A common implementation of _Py_Sleep, _Py_WaitForSingleObject, and _Py_WaitForMultipleObjects is needed. _winapi.WaitForSingleObject would call _Py_WaitForSingleObject and autom

[issue43520] Make Fraction(string) handle non-ascii slashes

2021-03-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Dr Racket supports fraction conversions but insists on a forward slash just like we do. Welcome to DrRacket, version 7.9.0.17--2020-12-24(f6b7f93/a) [cs]. Language: racket, with debugging; memory limit: 128 MB. > (/ 1 2) 1/2 > (string->number "3/5") 3/5 > (

[issue26350] [Windows] signal.signal and os.kill doc should better explain what is supported

2021-03-19 Thread Eryk Sun
Eryk Sun added the comment: The signal.signal() docs should explain that only SIGINT and SIGBREAK can be signaled from another process, and only if the current process is a console application. A link to os.kill() could be added, which should explain their use as signals in relation to conso

[issue23948] Deprecate os.kill() on Windows

2021-03-19 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg256166 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23948] Deprecate os.kill() on Windows

2021-03-19 Thread Eryk Sun
Eryk Sun added the comment: I'd prefer to change os.kill() to take the code path that generates a console control event only when the pid value is negative (i.e. a process group ID), with -1 reserved to send the event to all processes in the console session (i.e. console process group 0). Al

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-19 Thread Vedran Čačić
Vedran Čačić added the comment: Matthew: can you then answer the same question I asked Serhiy? The example usually given when advocating strong typing is whether 2 + '3' should be '23' or 5. Our uneasiness with it doesn't stem from coercions between int and str, but from the fact that + has t

[issue43566] Docs say int('010', 0) is not legal, but it is

2021-03-19 Thread Chris Wilson
New submission from Chris Wilson : The documentation for the int() builtin says: Base 0 means to interpret exactly as a code literal, so that the actual base is 2, 8, 10, or 16, and so that int('010', 0) is not legal, while int('010') is, as well as int('010', 8). https://docs.python.org/3/l

[issue32865] os.pipe creates inheritable FDs with a bad internal state on Windows

2021-03-19 Thread Eryk Sun
Change by Eryk Sun : -- components: +Extension Modules -Library (Lib) versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___

[issue32862] os.dup2(fd, fd, inheritable=False) behaves inconsistently

2021-03-19 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bug

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2021-03-19 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list maili

<    1   2