[issue28166] WindowsConsoleIO misbehavior when Ctrl+C is ignored

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- components: +Interpreter Core -Library (Lib) versions: +Python 3.10 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue28

[issue28166] WindowsConsoleIO misbehavior when Ctrl+C is ignored

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg359933 ___ Python tracker <https://bugs.python.org/issue28166> ___ ___ Python-bugs-list mailin

[issue29996] Use terminal width by default in pprint

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue29996> ___ ___ Python-bug

[issue29996] Use terminal width by default in pprint

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg291198 ___ Python tracker <https://bugs.python.org/issue29996> ___ ___ Python-bugs-list mailin

[issue30405] build.bat: register binaries for py launcher

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue30405> ___ ___ Python-bug

[issue27602] Enable py launcher to launch repository Python.

2021-03-20 Thread Eryk Sun
Eryk Sun added the comment: See also bpo-30405, which has more discussion about supporting PEP 514 in the launcher. -- ___ Python tracker <https://bugs.python.org/issue27

[issue30405] build.bat: register binaries for py launcher

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg293989 ___ Python tracker <https://bugs.python.org/issue30405> ___ ___ Python-bugs-list mailin

[issue30374] Make win_add2path.py take effect without having to log off

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- components: -ctypes versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue30

[issue29178] Adding bytes.frombuffer(byteslike) constructor

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue29178> ___ ___ Python-bug

[issue29971] Lock.acquire() not interruptible on Windows

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- components: +Extension Modules, Interpreter Core versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue29

[issue29971] Lock.acquire() not interruptible on Windows

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg291089 ___ Python tracker <https://bugs.python.org/issue29971> ___ ___ Python-bugs-list mailin

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

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue36305> ___ ___ Python-bug

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

2021-03-20 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 <https://bugs.python.org/issue32862> ___ ___

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

2021-03-20 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 <https://bugs.python.org/issue32

[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

[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 <https://bugs.python.org/issue23948> ___ ___ Python-bugs-list mailin

[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

[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

[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 <https://bugs.python.org/issu

[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

[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 -&g

[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 <https://bugs.python

[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

[issue43552] Add locale.get_locale_encoding() and locale.get_current_locale_encoding()

2021-03-19 Thread Eryk Sun
Eryk Sun added the comment: > But please discuss it in another issue. What's returned by locale.get_locale_encoding() and locale.get_current_locale_encoding() is relevant to adding them as new functions and is a chance to implement this correctly in Windows. You're right that what o

[issue43484] valid datetimes can become invalid if the timezone is changed

2021-03-19 Thread Eryk Sun
Eryk Sun added the comment: Thank you for thoughtful and detailed answer, Paul. -- ___ Python tracker <https://bugs.python.org/issue43484> ___ ___ Python-bug

[issue43484] valid datetimes can become invalid if the timezone is changed

2021-03-19 Thread Eryk Sun
Eryk Sun added the comment: That it allows creating the datetime instance looks like a bug to me, i.e. a time before 0001-01-01 00:00 UTC is invalid. What am I misunderstanding? -- nosy: +eryksun ___ Python tracker <https://bugs.python.

[issue43550] pip.exe is missing from the NuGet package

2021-03-19 Thread Eryk Sun
Eryk Sun added the comment: I suppose if you really need a plain `pip` command, you could reinstall with `python.exe -m pip install --force-reinstall pip`. -- nosy: +eryksun ___ Python tracker <https://bugs.python.org/issue43

[issue43552] Add locale.get_locale_encoding() and locale.get_current_locale_encoding()

2021-03-19 Thread Eryk Sun
Eryk Sun added the comment: > But it is not what I want for now. I want to ignore UTF-8 mode > when `encoding="locale"` is specified. > This is almost "only in Windows" issue, and users can use > `encoding="mbcs"` in Windows-only script. Why is it

[issue43552] Add locale.get_locale_encoding() and locale.get_current_locale_encoding()

2021-03-19 Thread Eryk Sun
Eryk Sun added the comment: > If Python calls setlocale() per default now, it has served its purpose. Except not for embedding applications if configure_locale [1] isn't set. But in that case determining the default locale isn't Python's problem to solve. > My assumption is that nl_la

[issue43552] Add locale.get_locale_encoding() and locale.get_current_locale_encoding()

2021-03-19 Thread Eryk Sun
Eryk Sun added the comment: > Read the ANSI code page on Windows, I don't see why the Windows implementation is inconsistent with POSIX here. If it were changed to be consistent, the default encoding at startup would remain the same, since setlocale(LC_CTYPE, "") uses the proc

[issue43175] filecmp is not working for UTF-8 BOM file.

2021-03-18 Thread Eryk Sun
Eryk Sun added the comment: I'm closing this as not a bug. You showed that all of the criteria used in a non-shallow comparison are the same on your end, i.e. they're both regular files with the same reported size and the same contents. Something is going on, which is a mystery, but it's

[issue33030] GetLastError() may be overwritten by Py_END_ALLOW_THREADS

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue33030> ___ ___ Python-bug

[issue21130] equivalent functools.partial instances should compare equal

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue21130> ___ ___ Python-bug

[issue29270] super call in ctypes subclass fails

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- stage: patch review -> needs patch title: super call in ctypes sub-class fails in 3.6 -> super call in ctypes subclass fails versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker

[issue41883] ctypes pointee goes out of scope, then pointer in struct dangles and crashes

2021-03-18 Thread Eryk Sun
Eryk Sun added the comment: The ctypes issue is bpo-12836, which has a suggested solution. This issue is a third-party problem introduced by a workaround, which needs to be addressed at the source, such as with helper functions and subclasses that close the loop. -- resolution

[issue32745] ctypes string pointer fields should accept embedded null characters

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue32745> ___ ___ Python-bug

[issue27274] [ctypes] Allow from_pointer creation

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue27274> ___ ___ Python-bugs-list mailing list Unsub

[issue24823] ctypes.create_string_buffer does not add NUL if len(init) == size

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- components: +ctypes ___ Python tracker <https://bugs.python.org/issue24823> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24823] ctypes.create_string_buffer does not add NUL if len(init) == size

2021-03-18 Thread Eryk Sun
Eryk Sun added the comment: > The Documentation component is for issues that only change the docs That's not clear in the triaging guide for the multi-select component field. (However, it is clearly stated as such for the GitHub PR label "type-documentation".) If that's re

[issue28708] Low FD_SETSIZE limit on Windows

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- components: +Extension Modules -Build versions: +Python 3.10 -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue28

[issue27318] Add support for symlinks to zipfile

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue27318> ___ ___ Python-bugs-list mailing list Unsub

[issue21506] [Windows] installations should include pythonX.exe and pythonX.Y.exe executables

2021-03-18 Thread Eryk Sun
Eryk Sun added the comment: One issues with versioned "X.Y" executables is interference with normal handling of the ".exe" extension. For example, in "python3.10" the ".10" counts as an extension, so normally ".exe" won't be appended when s

[issue8232] webbrowser.open incomplete on Windows

2021-03-18 Thread Eryk Sun
Eryk Sun added the comment: Windows Vista is no longer a concern, so find_windows_browsers() doesn't have to worry about the KEY_WOW64_* flags. IMO, it should get the browser's real name (the default value of the key) and the fully-qualified path of the executable, instead of depending

[issue8232] webbrowser.open incomplete on Windows

2021-03-18 Thread Eryk Sun
Change by Eryk Sun : -- components: +Windows dependencies: +[Windows] support args and cwd in os.startfile() nosy: +paul.moore, tim.golden, zach.ware versions: +Python 3.10 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue8

[issue43538] [Windows] support args and cwd in os.startfile()

2021-03-18 Thread Eryk Sun
New submission from Eryk Sun : bpo-8232 has a patch to add an `arguments` parameter to os.startfile(). This improvement is needlessly tied to that issue. It's useful in general as a safer way to execute applications and scripts compared to using subprocess.Popen() with shell=True. It also

[issue31103] Windows Installer Product does not include micro version in display name

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: FYI, the 3rd field is Field3Value, defined in "PCbuild/python.props" as the value `MicroVersionNumber*1000 + ReleaseLevelNumber*10 + ReleaseSerial`. It gets set as the FIELD3 macro in "PCbuild/pyproject.props", which gets used in the definitio

[issue42730] TypeError/hang inside of Time.Sleep() when _thread.interrupt_main()

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: > Shouldn't the behaviour for _thread.interrupt_main() be always to > interrupt the main thread. The underlying C API function, PyErr_SetInterrupt(), simulates SIGINT without actually sending the signal to the process via kill() or raise(), but the doc

[issue25386] msvcrt_putch/msvcrt_putwch don't check the return value of _putch/_putwch

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue25386> ___ ___ Python-bug

[issue33240] shutil.rmtree fails if inner folder is open in Windows Explorer

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- components: -IO ___ Python tracker <https://bugs.python.org/issue33240> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33240] shutil.rmtree fails if inner folder is open in Windows Explorer

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: > Explorer keeps handles open to directories to get updates via > ReadDirectoryChangesExW. It opens watched directories with > shared delete access, so deleting the child succeeds. But as > discussed above, the directory isn't unlinked from the pa

[issue39340] shutil.rmtree and write protected files

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: > What I would expect is a consistent behaviour and as a > user I am not interested in inner guts of differences > between filesystems. It's already consistent. msg360033 contains a misunderstanding about what write permission on a file means in Unix. T

[issue43437] venv activate bash script has wrong line endings on windows

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> venv activate bash script has wrong line endings in Windows ___ Python tracker <https://bugs.python

[issue32451] venv activate bash script has wrong line endings in Windows

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: The POSIX "Lib/venv/scripts/common/activate" script needs a line-ending exception in ".gitattributes": https://github.com/python/cpython/blob/master/.gitattributes -- title: python -m venv activation issue when using cygwin on windo

[issue43395] os.path states that bytes can't represent all MBCS paths under Windows

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- versions: -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue43395> ___ ___ Python-bugs-list mailing list Unsub

[issue42855] pathlib.exists on Windows raises an exception on URL like/bad input

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- components: +Library (Lib) versions: -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue42855> ___ ___ Python-bug

[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- components: +Extension Modules, Interpreter Core versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue21

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: > Given that extra info, I'd say we're fine to document that our timeouts > can't do any better than the OS, which "for example, is typically > around 15ms on Windows", and recommend using non-blocking calls > instead. The 15.625 ms re

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: See the related discussion in bpo-41299. The system interrupt period can be lowered to 1 ms with timeBeginPeriod() -- or lower with undocumented NtSetTimerResolution(). This affects the resolution of dispatcher waits such as Sleep() and WaitForSingleObject

[issue43284] Inability to fetch build 20H2

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: > For the other 10% (diagnostic logging), it would be nice to have a > better option than running "cmd /c ver" CMD's VER command (cmd!eVersion) calls GetVersion(), for which, in its case, the API calls the internal function GetVersion_Current().

[issue35216] misleading error message from shutil.copy()

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> shutil.copy raises IsADirectoryError when the directory does not actually exist ___ Python tracker <https://bugs.python

[issue34297] Windows py launcher fails to handle a quoted version argument

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- stage: test needed -> needs patch title: Windows py.exe launcher fail to handle quote correctly -> Windows py launcher fails to handle a quoted version argument versions: +Python 3.10, Python 3.9 -Python 3.6, Pyth

[issue25012] pathlib should allow converting to absolute paths without resolving symlinks

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Add support for Path.absolute() ___ Python tracker <https://bugs.python

[issue29688] Add support for Path.absolute()

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg289517 ___ Python tracker <https://bugs.python.org/issue29688> ___ ___ Python-bugs-list mailin

[issue27602] Enable py launcher to launch repository Python.

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: The narrow scope of this issue could be implemented by defining a scheme for local builds in the PythonCore key -- such as "X.Ys[-32]". The build process would create or update the "HKCU\Software\Python\PythonCore\X.Ys[-32]\I

[issue32553] Use the py launcher in venv Windows examples

2021-03-16 Thread Eryk Sun
Change by Eryk Sun : -- title: venv says to use python3 which does not exist in 3.6.4 -> Use the py launcher in venv Windows examples versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker <https://bugs.python.org/issu

[issue38890] subprocess.Popen should not emit a ResourceWarning for a detached process

2021-03-16 Thread Eryk Sun
Eryk Sun added the comment: I wonder if this should be handled more productively by supporting a `daemon` parameter. In POSIX, use the double fork technique for creating a daemon process. In Windows, use DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP | CREATE_BREAKAWAY_FROM_JOB. For a daemon

[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2021-03-16 Thread Eryk Sun
Eryk Sun added the comment: > Python is conceptually multi-platform, so its behavior on > Linux and Windows should be as much consistent as possible. It's not expected for the behavior of all Popen() parameters to be the same on all platforms. For example, the behavior and capabi

[issue43523] Handling Ctrl+C while waiting on I/O in Windows

2021-03-16 Thread Eryk Sun
Eryk Sun added the comment: winrshost.exe runs Python with its standard I/O redirected to pipes, so sys.stdin.read(1) blocks the main thread while waiting for the synchronous read to complete. If the user types something, then the read completes and the main thread can call the SIGINT

[issue43284] Inability to fetch build 20H2

2021-03-16 Thread Eryk Sun
Eryk Sun added the comment: Note that the following recommendation for getting the system version was removed in late 2019 [1][2]: To obtain the full version number for the operating system, call the GetFileVersionInfo function on one of the system DLLs, such as Kernel32.dll

[issue34187] Issues with lazy fd support in _WindowsConsoleIO fileno() and close()

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: The issues brought up here are addressed in a more direct, comprehensive, and productive way in PR 1927 for bpo-30555. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> _io._WindowsCons

[issue36213] subprocess.check_output() fails with OSError: [WinError 87] when current directory name is too long

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: As discussed in msg337357, the Windows API does not support setting the current working directory to a path that starts with \\?\ or \\.\. It's dysfunctional in many cases. Anyway, using a \\?\ path does not remove the length limit on the working directory, which

[issue36646] os.listdir() got permission error in Python3.6 but it's fine in Python2.7

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: I'm certain this is a third-party problem -- something like AppLocker or an anti-malware program that's limiting filesystem access. It's not a bug in Python, which simply uses FindFirstFileW() and FindNextFileW() in the normal way. -- resolution

[issue33780] [subprocess] Better Unicode support for shell=True on Windows

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: The complexity of mixing standard I/O from the shell and external programs is a limitation of the Windows command line. Each program could choose to use the system (or process) ANSI or OEM code page, the console session's input or output code page, UTF-8, or UTF

[issue33603] Subprocess Thread handles grow with each call and aren't released [Windows]

2021-03-15 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue33603> ___ ___

[issue27346] Implement os.readv() / os.writev() in Windows port

2021-03-15 Thread Eryk Sun
Change by Eryk Sun : -- status: open -> pending ___ Python tracker <https://bugs.python.org/issue27346> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue32434] pathlib.WindowsPath.reslove(strict=False) returns absoulte path only if at least one component exists

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: bpo-38671 has PR 17716 pending approval, which addresses the problem in msg309102 by ensuring that a non-strict resolve begins by getting the absolute path via nt._getfullpathname(). -- resolution: -> duplicate stage: needs patch -> resolved status

[issue31665] Edit "Setting [windows] environmental variables"

2021-03-15 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 <https://bugs.python.org/issue31665> ___ ___

[issue30555] _io._WindowsConsoleIO breaks in the face of fd redirection

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: PR 1927 is a definite improvement. By using _get_osfhandle() instead of caching the handle value, it guarantees that access to the original console file can be saved and restored via `fd_save = dup(fd)` and `dup2(fd_save, fd)`. It also allows duping a new open

[issue27346] Implement os.readv() / os.writev() in Windows port

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: The need for asynchronous I/O (i.e. FILE_FLAG_OVERLAPPED) with ReadFileScatter() and WriteFileGather() makes them a poor fit for POSIX os.readv() and os.writev(), since we can't open the file with open() or os.open(). Python's socket module opens sockets

[issue29805] Support moving across filesystems in pathlib.Path, as shutil.move() does

2021-03-15 Thread Eryk Sun
Change by Eryk Sun : -- components: -Windows title: Pathlib.replace cannot move file to a different drive on Windows if filename different -> Support moving across filesystems in pathlib.Path, as shutil.move() does versions: +Python 3.10, Python 3.8, Python 3.9 -Python

[issue24829] Use interactive input even if stdout is redirected

2021-03-15 Thread Eryk Sun
Change by Eryk Sun : -- dependencies: +Python interactive console doesn't use sys.stdin for input versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue24

[issue17620] Python interactive console doesn't use sys.stdin for input

2021-03-15 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue17620> ___ ___ Python-bug

[issue12777] Inconsistent use of VOLUME_NAME_* with GetFinalPathNameByHandle

2021-03-15 Thread Eryk Sun
Eryk Sun added the comment: bpo-33016 fixed the problem with the inconsistent dwFlags argument passed to GetFinalPathNameByHandleW(). We do need the ability to get the NT name in order to implement samefile() and sameopenfile() reliably in all cases -- i.e. when the volume serial number

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2021-03-14 Thread Eryk Sun
Eryk Sun added the comment: PEP 11 says that "[a] new feature release X.Y.0 will support all Windows releases whose extended support phase is not yet expired". There was no such thing as Extended Security Updates (ESU) when that provision was accepted. As defined by PEP 11, extend

[issue43491] Windows filepath bug

2021-03-14 Thread Eryk Sun
Eryk Sun added the comment: "C:\some\path/some/file.txt" is a valid file path. The Windows file API normalizes most paths, except for verbatim paths that start with exactly "\\?\". Path normalization includes replacing forward slashes with backslashes. If you provide th

[issue27749] multiprocessing Manager error: send() called for a closed connection

2021-03-13 Thread Eryk Sun
Change by Eryk Sun : -- title: multprocessing errors on Windows: WriteFile() argument 1 must be int, not None; OSError: handle is closed -> multiprocessing Manager error: send() called for a closed connection type: crash -> behavior versions: +Python 3.10, Python 3.8, Pyth

[issue29586] Cannot run pip in fresh install of py 3.5.3

2021-03-13 Thread Eryk Sun
Eryk Sun added the comment: This issue is similar to bpo-25117 in terms of the installer failing to run Python for post-installation tasks. The complication in this case is that a subsequent repair doesn't install pip. -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5

[issue29124] Freeze fails to compile on windows

2021-03-13 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue29

[issue28344] Python 3.5.2 installer hangs when run in session 0

2021-03-13 Thread Eryk Sun
Eryk Sun added the comment: I tested installing 3.10 in session 0 for the current user, as a user with the batch logon right. The installation succeeded. If you're running as SYSTEM, then installing for the current user doesn't see reasonable to me. I won't test that case. I tested

[issue25166] Windows AllUsers installation places uninstaller in user profile

2021-03-13 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue25166> ___ ___ Python-bug

[issue25117] Windows installer: precompiling stdlib fails with missing DLL errors

2021-03-13 Thread Eryk Sun
Eryk Sun added the comment: Maybe it's worth adding a recommendation in the docs to reboot and try to repair an installation that fails in the final stage due to ucrt not being fully installed yet, i.e. missing api-ms-win-crt-*.dll. Or maybe this case can be detected and display a message

[issue23633] Improve py launcher help, index, and doc

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: The current help text attempts to explain point 2, in terms of an active virtual environment, shebangs, the PY_PYTHON[2|3] environment variables, and the py.ini [defaults]. It's a lot to say succinctly in a few lines of text. A shortened URL that links

[issue36880] Returning None from a callback with restype py_object decrements None's refcount too much

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue36880> ___ ___

[issue26362] Approved API for creating a temporary file path

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: > So no, while unresolved, this bug report should not be closed. The implied question was whether you or the core devs on the nosy list, upon further consideration, wanted to resolve the issue by rejecting the request, but it had simply been forgotten about fo

[issue34840] dlopen() error with no error message from dlerror()

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue34840> ___

[issue30435] Documentation either unclear or incorrect on comparisons between bytes and strings in Python 3

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- type: behavior -> enhancement versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issu

[issue18017] ctypes.PyDLL documentation

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: I think the documentation of ctypes.PyDLL and ctypes.pythonapi is good enough as is. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue29688] Add support for Path.absolute()

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- assignee: -> docs@python components: +Library (Lib) type: -> enhancement versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/i

[issue26362] Approved API for creating a temporary file path

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: > The proposal in this issue is to have a public standard library API, > which I'm calling ‘tempfile.makepath’, It's a few years later, and tempfile.mktemp() still exists and works without raising a deprecation warning. Of course it's still marked as depr

[issue27886] Docs: the difference between Path.rename() and Path.replace() is not obvious

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: The pathlib documentation of Path.rename() says "[o]n Unix, if target exists and is a file, it will be replaced silently if the user has permission". This leaves the behavior on Windows in question. The reader has to scroll down to the correspond

<    1   2   3   4   5   6   7   8   9   10   >