[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset c1e46e94de38a92f98736af9a42d89c3975a9919 by Gregory P. Smith (Alexey Izbyshev) in branch 'master': bpo-32777: Fix _Py_set_inheritable async-safety in subprocess (GH-5560) https://github.com/python/cpyt

[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 2bb0bfafb0beb819b7c60d9004382ce6867847c0 by Gregory P. Smith (Miss Islington (bot)) in branch '3.7': bpo-32777: Fix _Py_set_inheritable async-safety in subprocess (GH-5560) (GH-5562) https://github.com/python/cpyt

[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset b90c68586e1f2c45c736dd38880f182be267e2ef by Gregory P. Smith (Miss Islington (bot)) in branch '3.6': bpo-32777: Fix _Py_set_inheritable async-safety in subprocess (GH-5560) (GH-5563) https://github.com/python/cpyt

[issue32777] subprocess: child_exec() uses _Py_set_inheritable() which is not async-signal-safe

2018-02-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- components: +Extension Modules resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker <https://bugs.python.or

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Nathaniel's specific description of a problem is wrong. A Path with embedded spaces is treated no different than one without by default. Where things change, and what needs fixing, is when shell=True is passed. In that case a PathLike object should n

[issue32764] Popen doesn't work on Windows when args is a list

2018-02-06 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker <https://bugs.python.org/issue32764> ___ ___ Python-bugs-list mailing list Un

[issue6135] subprocess seems to use local encoding and give no choice

2018-02-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset fc1ce810f1da593648b4d19e7d582a235ec1dd37 by Gregory P. Smith (Brice Gros) in branch 'master': bpo-6135: Fix subprocess.check_output doc to mention changes in 3.6 (GH-5564) https://github.com/python/cpyt

[issue6135] subprocess seems to use local encoding and give no choice

2018-02-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 4e7a964aaf4374fa2f6b45cf5161fa6cd53aec19 by Gregory P. Smith (Miss Islington (bot)) in branch '3.7': bpo-6135: Fix subprocess.check_output doc to mention changes in 3.6 (GH-5564) (GH-5572) https://github.com/python/cpyt

[issue6135] subprocess seems to use local encoding and give no choice

2018-02-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 7f95c8c319c1ee593b130d0eb1d4947d9d7e008a by Gregory P. Smith (Miss Islington (bot)) in branch '3.6': bpo-6135: Fix subprocess.check_output doc to mention changes in 3.6 (GH-5564) (GH-5573) https://github.com/python/cpyt

[issue32815] Document text parameter to subprocess.Popen

2018-02-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset e14c01037877768a3fe766e50d14993bd5d8a67e by Gregory P. Smith (Pablo Galindo) in branch 'master': bpo-32815: Improve docs on the subprocess API *text* parameter (GH-5622) https://github.com/python/cpyt

[issue32815] Document text parameter to subprocess.Popen

2018-02-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset ba4f218657efcba856d00eb320418355cce8309a by Gregory P. Smith (Miss Islington (bot)) in branch '3.7': bpo-32815: Improve docs on the subprocess API *text* parameter (GH-5622) (GH-5631) https://github.com/python/cpyt

[issue32815] Document text parameter to subprocess.Popen

2018-02-11 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker <https://bugs.python.or

[issue30028] make test.support.temp_cwd() fork-safe

2018-02-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 33dddac00ba8d9b72cf21b8698504077eb3c23ad by Gregory P. Smith (Anselm Kruis) in branch 'master': bpo-30028: make test.support.temp_cwd() fork-safe (GH-1066) https://github.com/python/cpython/commit/33dddac00ba8d9b72cf21b86985040

[issue30028] make test.support.temp_cwd() fork-safe

2018-02-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 61bd4d2e6319a3c5c3b9ce5f807b44a45cc1d4a1 by Gregory P. Smith (Anselm Kruis) in branch '2.7': [2.7] bpo-30028: make test.support.temp_cwd() fork-safe (GH-1066) (GH-5825) https://github.com/python/cpyt

[issue30028] make test.support.temp_cwd() fork-safe

2018-02-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 9c819a6a7d34594779fea3a25fd69ec5745e185e by Gregory P. Smith (Anselm Kruis) in branch '3.6': [3.6] bpo-30028: make test.support.temp_cwd() fork-safe (GH-1066) (GH-5826) https://github.com/python/cpyt

[issue30028] make test.support.temp_cwd() fork-safe

2018-02-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed versions: +Python 2.7, Python 3.8 -Python 3.5 ___ Python tracker <https://bugs.python.or

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm fine with undoing this for 3.7 in light of the many things we don't do "right" all over the place with path like objects. subprocess still presents as a mix of high and low level APIs so if we accept a path like object in a subse

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: Ned: when removing a feature added in beta1, should we remove the original NEWS entry created for it? Or add a new NEWS entry that states that the previous feature has been reverted? -- ___ Python tracker

[issue21417] Compression level for zipfile

2018-02-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: keeping the conversation in one place, the code review comment was: "I've prefixed this with an underscore because it's not exposed when reading back. ZipInfo has another "private" attribute, _raw_time" compresslevel is docum

[issue32973] Importing the same extension module under multiple names breaks non-reinitialisable extension modules

2018-02-28 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue32973> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32973] Importing the same extension module under multiple names breaks non-reinitialisable extension modules

2018-02-28 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue32973> ___ ___ Python-bugs-list m

[issue33079] subprocess: document the interaction between subprocess.Popen and os.set_inheritable

2018-03-25 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +5976 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33079> ___ ___ Py

[issue33079] subprocess: document the interaction between subprocess.Popen and os.set_inheritable

2018-03-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: I assumed simon meant "close_fds=False" when he wrote open_fds = True. Regardless, supplying any pass_fds forces close_fds=True behavior. File descriptors listed in pass_fds are explicitly set inheritable from within the child process prior to ca

[issue33079] subprocess: document the interaction between subprocess.Popen and os.set_inheritable

2018-03-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: I clarified the docs to mention that the inheritable flag is heeded when close_fds=False in https://github.com/python/cpython/pull/6240/files -- resolution: -> fixed stage: patch review -> resolved status: open -&g

[issue32270] subprocess closes redirected fds even if they are in pass_fds

2018-03-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: This bug stems from: https://github.com/python/cpython/blob/master/Modules/_posixsubprocess.c#L454 When stdout=fd is passed, that results in c2pwrite=fd. The stdin/stdout/stderr pipe fds are closed when > 2 without checking to see if they are listed

[issue32270] subprocess closes redirected fds even if they are in pass_fds

2018-03-25 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +5977 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32270> ___ ___ Py

[issue25782] CPython hangs on error __context__ set to the error itself

2018-03-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: I believe the original issue is fixed, the original problem and the one Jack followed up with no longer work in modern Python 3. But there is discussion about possibly doing something better, if anyone is interested in doing that I suggest opening a new

[issue30416] constant folding opens compiler to quadratic time hashing

2018-03-25 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> benjamin.peterson ___ Python tracker <https://bugs.python.org/issue30416> ___ ___ Python-bugs-list mailing list Un

[issue32844] subprocess may incorrectly redirect a low fd to stderr if another low fd is closed

2018-03-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 0e7144b064a19493a146af94175a087b3888c37b by Gregory P. Smith (Alexey Izbyshev) in branch 'master': bpo-32844: Fix a subprocess misredirection of a low fd (GH5689) https://github.com/python/cpyt

[issue20104] expose posix_spawn(p)

2018-04-01 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +6046 ___ Python tracker <https://bugs.python.org/issue20104> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20104] expose posix_spawn(p)

2018-04-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 79760ed256987cead08d668b95675afba6b3760f by Gregory P. Smith in branch 'master': bpo-20104: Add os.posix_spawn documentation. (#6334) https://github.com/python/cpython/commit/79760ed256987cead08d668b95675a

[issue20104] expose posix_spawn(p)

2018-04-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: PR 6332 is overall a good cleanup. I pushed a couple changes to that PR and left comments for some others. It should go in. There are basic tests for os.posix_spawn in test_posix.py. More would be nice as we don't currently have any for the error

[issue33191] Refleak in posix_spawn

2018-04-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: https://github.com/python/cpython/pull/6332 appears to address this. -- ___ Python tracker <https://bugs.python.org/issue33

[issue31814] subprocess_fork_exec more stable with vfork

2018-04-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: A raw os.posix_spawn() API has been added to 3.7. vfork() would likely all sorts of other problems. It is extremely complicated and implementations have bugs. CERT says never to use it. https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId

[issue31814] subprocess_fork_exec more stable with vfork

2018-04-04 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-18 Thread Gregory P. Smith
New submission from Gregory P. Smith : Build CPython (master in this case - though I originally noticed the problem when building a 3.6 tree) as follows with clang installed: build$ LD=clang-5.0 LDFLAGS=-fsanitize=undefined CC=clang-5.0 CXX=clang-5.0 CFLAGS=-fsanitize=undefined CXXFLAGS

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-18 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +benjamin.peterson, fweimer ___ Python tracker <https://bugs.python.org/issue33312> ___ ___ Python-bugs-list mailin

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-18 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +twouters ___ Python tracker <https://bugs.python.org/issue33312> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: related: https://ssl.icu-project.org/trac/ticket/13503 -- ___ Python tracker <https://bugs.python.org/issue33312> ___ ___

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think it is worth getting such a change in. its arguable that the compiler should be able to see through the union for this use case but I assume such a fix would only land in a recent clang version. i'm attaching a variant on your patch that do

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: notably, C99 variable length arrays syntax is not mentioned as allowed in https://www.python.org/dev/peps/pep-0007/. If we want to use VLAs, that should be clarified. But both our solutions should work with [1] instead of [] which is allowed by the ubsan

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +6233 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue33312> ___ ___ Python-

[issue24318] Better documentaiton of profile-opt (and release builds in general?)

2018-04-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +6234 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue24318> ___ ___ Python-

[issue24318] Better documentaiton of profile-opt (and release builds in general?)

2018-04-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: FYI - The test suite minus some of the crazier tests (multiprocessing) that the makefile uses today is the recommended workload and is effectively what linux distros I've looked at use. It is a myth that the specific application workload matters a

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: By my reading on how strict aliasing works, I think just changing the int64_t[1] or int32_t[1] in my PR to char[1] will work as char is always assumed to alias? the clang ubsan i was testing my PR against wasn't warning me about strict ali

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm going to see what appveyor says with the VLA code on the PR. I've updated it to use char[]. -- ___ Python tracker <https://bugs.python.o

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: My PR is almost a revert of https://github.com/python/cpython/commit/186122ead26f3ae4c2bc9f6715d2a29d339fdc5a so I'm curious what your motivation behind that change to use the union was? -- ___ Python tr

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 397f1b28c4a12e3b3ed59a89599eabc457412649 by Gregory P. Smith in branch 'master': bpo-33312: Fix clang ubsan out of bounds warnings in dict. (GH-6537) https://github.com/python/cpython/commit/397f1b28c4a12e3b3ed59a89599eab

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: If you think this should be written differently, please propose it in a PR so we can see what you are suggesting. An unbounded member at the end of a struct is quite a common practice in C. ex: PyBytesObject

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 392520bd78cd18639a27e5d2803c2e1c2bd593a8 by Gregory P. Smith (Miss Islington (bot)) in branch '3.7': bpo-33312: Fix clang ubsan out of bounds warnings in dict. (GH-6537) (GH-6543) https://github.com/python/cpyt

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: ned: yes, it supposedly has. test_gdb. in a manner i cannot reproduce or debug without error output that indicates anything about the problem. test_gdb passes on my systems. -- ___ Python tracker <ht

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: I see one line in Tools/gdb/libpython.py that may be related. i'll try changing that. the only way i have to _test_ it is to merge it into master. -- ___ Python tracker <https://bugs.python.org/is

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +6245 ___ Python tracker <https://bugs.python.org/issue33312> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 53f67d401df40486fd0fb8fbcf9da725cd37290c by Gregory P. Smith in branch 'master': bpo-33312: update Tools/gdb/libpython.py to match. (GH-6548) https://github.com/python/cpython/commit/53f67d401df40486fd0fb8fbcf9da7

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 11659d00b9185c8f02ea6b642fa475a80e21f1a9 by Gregory P. Smith (Miss Islington (bot)) in branch '3.7': bpo-33312: update Tools/gdb/libpython.py to match. (GH-6549) https://github.com/python/cpython/commit/11659d00b9185c8f02ea6b642fa475

[issue33321] Add a Linux clang ubsan undefined behavior sanitizer buildbot

2018-04-20 Thread Gregory P. Smith
New submission from Gregory P. Smith : CPython needs to be regularly built and vetted for C undefined behavior. CFLAGS=-fsanitize=undefined LDFLAGS=-fsanitize=undefined CC=clang LD=clang ./configure is all it takes to start with. if you do this today, test_ctypes will knock your socks off

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: Sorry for the breakage. I'm glad the fix was that greppable and easy given I had no idea where to start otherwise. :) This is in for 3.7. The PR for 3.6 is pending, i want to let it out in the next 3.7 builds for a while before i merge it into 3.6

[issue33337] Provide a supported Concrete Syntax Tree implementation in the standard library

2018-04-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: +1 in general to this work. Ɓukasz is effectively preaching to the choir by looping me in here. :) It is a big challenge to practically support Python in that we have no good ability to parse and understand all language syntax versions via a single API

[issue26834] Add truncated SHA512/224 and SHA512/256

2018-05-02 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.8 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue26834> ___ ___ Python-bugs-list mailin

[issue20104] expose posix_spawn(p)

2018-05-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Since this is a new API, the most important thing is to have decided how we want it to look in 3.7, it is okay for it to be missing features so long as the API doesn't prevent them from being added in the future. ie: It is fine to ship it wi

[issue33351] Support compiling with clang-cl on Windows

2018-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: FWIW, I would _love_ to see this. But I don't wrangle Windows myself so I can't usefully offer anything other than being happy to volunteer to run a Clang on Windows buildbot VM once there is something to actually be run. -- nosy: +grego

[issue20104] expose posix_spawn(p)

2018-05-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Pablo, Victor, Ned and I synced up at the pycon2018 sprints. We're removing posix_spawn from 3.7 (https://github.com/python/cpython/pull/6794) while the API is worked on. -- ___ Python tracker &

[issue28287] Refactor subprocess.Popen to let a subclass handle IO asynchronously

2018-05-14 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue28287> ___ ___ Python-bugs-list mailin

[issue33453] from __future__ import annotations breaks dataclasses ClassVar and InitVar handling

2018-05-14 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue33453> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33314] Bad rendering in the documentation for the os module

2018-05-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: the PRs were merged, marking this as fixed. -- nosy: +gregory.p.smith resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue20104] expose posix_spawn(p)

2018-05-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 8e633a4035bcff458c45fa095f4b8eab2f158466 by Gregory P. Smith (Pablo Galindo) in branch '3.7': bpo-20104: Remove posix_spawn from 3.7 (GH-6794) https://github.com/python/cpython/commit/8e633a4035bcff458c45fa095f4b8e

[issue20104] expose posix_spawn(p)

2018-05-14 Thread Gregory P. Smith
Change by Gregory P. Smith : -- priority: release blocker -> normal versions: -Python 3.7 ___ Python tracker <https://bugs.python.org/issue20104> ___ ___ Py

[issue20104] expose posix_spawn(p)

2018-05-14 Thread Gregory P. Smith
Change by Gregory P. Smith : -- components: +Library (Lib) ___ Python tracker <https://bugs.python.org/issue20104> ___ ___ Python-bugs-list mailing list Unsub

[issue24318] Better documentaiton of profile-opt (and release builds in general?)

2018-05-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +6537 ___ Python tracker <https://bugs.python.org/issue24318> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19950] Document that unittest.TestCase.__init__ is called once per test

2018-05-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +6548 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: If the behavior was consistent from 3.3 through 3.6, that is the behavior we should keep going forward in 3.7+ without a deprecation period. (and this does not seem worth deprecating, lets just keep the behavior the same as it was in 3.3-3.6) That 2.7 is

[issue1649329] Extract file-finding and language-handling code from gettext.find

2017-09-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: FYI - We run into this problem getting things using gettext for i18n within a hermetic zipped up Python application at work. I'm not reopening it as I have nothing new to propose right now, but figured I'd drop a note that it does seem like a

[issue22729] concurrent.futures `wait` and `as_completed` depend on private api

2017-10-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: any thoughts on this Antoine? -- nosy: +gregory.p.smith, pitrou title: `wait` and `as_completed` depend on private api -> concurrent.futures `wait` and `as_completed` depend on private api ___ Python trac

[issue31712] subprocess with stderr=subprocess.STDOUT hang

2017-10-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Please try to reproduce this with Python 3.6. On 2.7, I highly recommend you stop using the Python 2.7 subprocess module and install the subprocess32 backport available on PyPI. It is *much* more reliable

[issue31814] subprocess_fork_exec more stable with vfork

2017-10-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: Using new syscalls for _posixsubprocess.c would be a feature so it would be limited to 3.7+ if done at all. My gut feeling is that the real bug is in *any* library code that uses pthread_atfork() in a non thread safe manner. That code is fundamentally

[issue31814] subprocess_fork_exec more stable with vfork

2017-10-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- components: +Extension Modules -Interpreter Core type: behavior -> enhancement ___ Python tracker <https://bugs.python.org/issu

[issue31756] subprocess.run should alias universal_newlines to text

2017-10-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue31756> ___ ___ Python-

[issue6721] Locks in the standard library should be sanitized on fork

2017-10-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +4042 ___ Python tracker <https://bugs.python.org/issue6721> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6721] Locks in the standard library should be sanitized on fork

2017-10-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: logging is pretty easy to deal with so I created a PR. bufferedio.c is a little more work as we either need to use the posixmodule.c os.register_at_fork API or expose it as an internal C API to be able to call it to add acquires and releases around the

[issue25083] Python can sometimes create incorrect .pyc files

2017-10-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: -gregory.p.smith ___ Python tracker <https://bugs.python.org/issue25083> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25083] Python can sometimes create incorrect .pyc files

2017-10-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm un-cc'ing myself as I don't use Python 2 in an environment where we allow it to write .pyc files at application runtime. -- ___ Python tracker <https://bugs.pyt

[issue31756] subprocess.run should alias universal_newlines to text

2017-10-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 7fed7bd8bb628f0f09c6011871a4ce68afb41b18 by Gregory P. Smith (andyclegg) in branch 'master': bpo-31756: subprocess.run should alias universal_newlines to text (#4049) https://github.com/python/cpyt

[issue31756] subprocess.run should alias universal_newlines to text

2017-10-22 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker <https://bugs.python.or

[issue31702] Allow to specify the number of rounds for SHA-* hashing in crypt

2017-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'd raise a ValueError in that case. -- ___ Python tracker <https://bugs.python.org/issue31702> ___ ___ Python-bugs-l

[issue31702] Allow to specify the number of rounds for SHA-* hashing in crypt

2017-10-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'd stick with ValueError in that case as well. if someone dislikes the valueerrors because they _want_ to use an invalid one, they can file a bug and we'll reconsider only if they have a meaningful use case. On Wed, Oct 25, 2017 at 9:36 AM Serhiy

[issue31913] forkserver could warn if several threads are running

2017-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: If we do this, I think we should aim for the complete solution on the most common posix platforms (Linux and MacOS) as C/C++ extensions are just as happy to create threads these days. (but if you want to start with a simple python threads only warning

[issue4356] Add "key" argument to "bisect" module functions

2017-11-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: obviously didn't make it in 3.6 but this still seems desirable. I just saw someone at work propose a trivial port of golang's sort.Search - https://golang.org/pkg/sort/#Search - in Python which caused me to hunt for an issue on bisect ke

[issue25942] subprocess.call SIGKILLs too liberally

2017-11-04 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue25942> ___ ___ Python-

[issue25942] subprocess.call SIGKILLs too liberally

2017-11-04 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.7 -Python 3.5 ___ Python tracker <https://bugs.python.org/issue25942> ___ ___ Python-bugs-list mailin

[issue31963] AMD64 Debian PGO 3.x buildbot: compilation failed with an internal compiler error in create_edge

2017-11-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: On Mon, Nov 6, 2017 at 3:11 PM Neil Schemenauer wrote: > > Neil Schemenauer added the comment: > > Hi Victor, > > My first guess is that the build bot is not cleaning the fprofile > information after updating the source tree. A few

[issue31963] AMD64 Debian PGO 3.x buildbot: compilation failed with an internal compiler error in create_edge

2017-11-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> works for me stage: -> resolved status: open -> closed type: performance -> compile error ___ Python tracker <https://bugs.python

[issue21149] logging._removeHandlerRef is not threadsafe during interpreter shutdown

2017-11-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: We're still seeing this (in 2.7.12, but the code at 2.7 head hasn't changed). In this case the RLock being used within _acquireLock() still exists but is an incomplete object by the time we use it. -- resolution: fixed -> status: c

[issue21149] logging._removeHandlerRef is not threadsafe during interpreter shutdown

2017-11-10 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker <https://bugs.python.org/issue21149> ___ ___ Python-bugs-list mailing list Un

[issue21149] logging._removeHandlerRef is not threadsafe during interpreter shutdown

2017-11-10 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +4321 stage: resolved -> patch review ___ Python tracker <https://bugs.python.org/issue21149> ___ ___ Python-

[issue21149] logging._removeHandlerRef is not threadsafe during interpreter shutdown

2017-11-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset e84f6d3817ad3d18fdfbb5223b8078606166cea0 by Gregory P. Smith in branch '2.7': [2.7] bpo-21149: Workaround a GC finalization bug in logging. (#4368) https://github.com/python/cpython/commit/e84f6d3817ad3d18fdfbb5223b8078

[issue21149] logging._removeHandlerRef is not threadsafe during interpreter shutdown

2017-11-11 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed type: -> behavior ___ Python tracker <https://bugs.python

[issue31963] AMD64 Debian PGO 3.x buildbot: compilation failed with an internal compiler error in create_edge

2017-11-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: Given this is gcc exploding, I'm not sure there is anything we can do about it. I _believe_ we're doing everything right. -- ___ Python tracker <https://bugs.python.o

[issue13986] ValueError: cannot convert float NaN to integer

2017-11-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: -gregory.p.smith ___ Python tracker <https://bugs.python.org/issue13986> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2017-12-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith, twouters ___ Python tracker <https://bugs.python.org/issue32248> ___ ___ Python-bugs-list mailin

[issue32369] test_subprocess: last part of test_close_fds() doesn't check what's intended

2017-12-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 2d8f06382e7d5a759ca554110a699a397114824a by Gregory P. Smith (izbyshev) in branch 'master': bpo-32369: test_subprocess: Fix pass_fds check in test_close_fds() (#4920) https://github.com/python/cpyt

<    19   20   21   22   23   24   25   26   27   28   >