[issue35754] When writing/closing a closed Popen.stdin, I get OSError vs. BrokenPipeError randomly or depending on bufsize

2019-01-16 Thread jimbo1qaz_ via Gmail
jimbo1qaz_ via Gmail added the comment: Popen._stdin_write() has comments linking to https://bugs.python.org/issue19612 and https://bugs.python.org/issue30418 . -- ___ Python tracker <https://bugs.python.org/issue35

[issue35754] When writing/closing a closed Popen.stdin, I get OSError vs. BrokenPipeError randomly or depending on bufsize

2019-01-16 Thread jimbo1qaz_ via Gmail
New submission from jimbo1qaz_ via Gmail : Windows 10 1709 x64, Python 3.7.1. Minimal example and stack traces at https://gist.github.com/jimbo1qaz/75d7a40cac307f8239ce011fd90c86bf Essentially I create a subprocess.Popen, using a process (msys2 head.exe) which closes its stdin after some

[issue35306] OSError [WinError 123] when testing if pathlib.Path('*') (asterisks) exists

2019-01-06 Thread jimbo1qaz_ via Gmail
jimbo1qaz_ via Gmail added the comment: Should Path.resolve() also avoid raising OSError? Path('*').resolve() Traceback (most recent call last): ...truncated File "", line 1, in Path('*').resolve() File "C:\Users\jimbo1qaz\AppData\Local\Programs\Python\Python37

[issue35306] OSError [WinError 123] when testing if pathlib.Path('*') (asterisks) exists

2018-11-23 Thread jimbo1qaz_ via Gmail
New submission from jimbo1qaz_ via Gmail : I'm writing a program taking paths from user input through CLI. `path` is a pathlib.Path(). Since Windows doesn't expand asterisks, I check if the path doesn't exist. If so I expand using Path().glob(path). Unfortunately on Windows, if `path` (type