[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

[issue32387] Disallow untagged C extension import on major platforms

2017-12-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: +1 on doing this. It might also be worth examining all of the latest package version wheels on pypi to see which packages claiming to support Python 3 have binary wheels containing untagged .pyd or .so files. -- nosy: +gregory.p.smith

[issue32387] Disallow untagged C extension import on major platforms

2017-12-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: Also, even if they are common, it seems reasonable that pip could be trained to rename untagged binaries on install after doing something to determine if they should be compatible with >=3.7 or

[issue32278] Allow dataclasses.make_dataclass() to omit type information

2017-12-22 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +4871 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32278> ___ ___ Py

[issue32278] Allow dataclasses.make_dataclass() to omit type information

2017-12-22 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue32278> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25942] Add a new optional cleanup_timeout parameter to subprocess.call()

2017-12-27 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +4914 ___ Python tracker <https://bugs.python.org/issue25942> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25942] Add a new optional cleanup_timeout parameter to subprocess.call()

2017-12-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: you'll notice I added an alternate PR. I don't like the complication of adding yet another knob (cleanup_timeout) to subprocesses already giant API surface. It will rarely be used. My PR tries to take a practical approach: Just wait a li

[issue32443] Add Linux's signalfd() to the signal module

2017-12-28 Thread Gregory P. Smith
New submission from Gregory P. Smith : We should add a wrapper for both signalfd() and a function to read and decode the structure from the fd into a dataclass. The code we need to build such a thing from appears to exist in BSD & MIT licensed form in: PyPI contains two extension mo

[issue32443] Add Linux's signalfd() to the signal module

2017-12-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: An example subprocess improvement using sigtimedwait() - https://github.com/python/cpython/pull/5035 - led me to believe that signalfd() is superior as it sounds like signalfd() does not require pthread_sigmask (sigprocmask) global state manipulation calls

[issue18035] telnetlib incorrectly assumes that select.error has an errno attribute

2017-12-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 3ceaed0dce81fd881bbaf2dbdbe827d9681887da by Gregory P. Smith (Segev Finer) in branch '2.7': bpo-18035: telnetlib: select.error doesn't have an errno attribute (#5044) https://github.com/python

[issue18035] telnetlib incorrectly assumes that select.error has an errno attribute

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

[issue32443] Add Linux's signalfd() to the signal module

2017-12-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: My reading of the Linux signalfd man page may be optimistic. :) Regardless, it'd be nice to have it available in the stdlib so it could be used if deemed useful. I expect this to only ever be added by someone making use of it in another stdlib module

[issue32491] base64.decode: linebreaks are not ignored

2018-01-03 Thread Gregory P. Smith
New submission from Gregory P. Smith : I've tried reading various RFCs around Base64 encoding, but I couldn't make the ends meet. Yet there is an inconsistency between base64.decodebytes() and base64.decode() in that how they handle linebreaks that were used to collate the en

[issue32496] lib2to3 fails to parse a ** of a conditional expression

2018-01-04 Thread Gregory P. Smith
New submission from Gregory P. Smith : see the attached sample code demonstrating the problem. basically lib2to3 fails to parse: dummy(**kwargs if kwargs else dict()) with an error like: raise ParseError("bad input", type, value, context) lib2to3.pgen2.parse.ParseError: bad i

[issue20104] expose posix_spawn(p)

2018-01-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: rejected -> stage: needs patch -> patch review status: closed -> open type: performance -> enhancement ___ Python tracker <https://bugs.python

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

2018-05-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 93f9a8a5afb58b1d2e4f27bb46d3d4e0fa8c08f0 by Gregory P. Smith in branch 'master': bpo-24318: Rewrite the README PGO section. (#6863) https://github.com/python/cpython/commit/93f9a8a5afb58b1d2e4f27bb46d3d4

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

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

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

2018-05-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset dff46758f267ad6c13096c69c4e1dee17f9969aa by Gregory P. Smith in branch 'master': bpo-19950: Clarify unittest TestCase instance use. (GH-6875) https://github.com/python/cpython/commit/dff46758f267ad6c13096c69c4e1dee17f9969aa -

[issue33522] Enable CI builds on Visual Studio Team Services

2018-05-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: Your PRs made modifications to code and did not include a useful commit message or appropriate NEWS entries for the code modifications. Further, VSTS is unreliable. core-workflow made a premature decision to turn off Travis and AppVeyor and make VSTS

[issue33522] Enable CI builds on Visual Studio Team Services

2018-05-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: I've emailed support@github on this one. Their UI is horrible, "show all checks" does not show them all. It shows five at most. It is an invisible scrolling region. We're forced to manually mouse over and scroll down in that region

[issue33522] Enable CI builds on Visual Studio Team Services

2018-05-18 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue33522> ___ ___

[issue33575] Python relies on C undefined behavior float-cast-overflow

2018-05-18 Thread Gregory P. Smith
New submission from Gregory P. Smith : Clang's undefined behavior sanitizer is flagging several places in CPython where it is relying on float-cast-overflow behavior. Typically exposed where an out of bounds floating point value is cast to another type. The clang compiler is about to

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

2018-05-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset a5f33a899f6450de96f5e4cd154de4486d50bdd7 by Gregory P. Smith (Miss Islington (bot)) in branch '3.6': bpo-19950: Clarify unittest TestCase instance use. (GH-6875) (GH-6939) https://github.com/python/cpyt

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

2018-05-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 436972e295f5057fe7cdd7312f543c2fa884705d by Gregory P. Smith (Miss Islington (bot)) in branch '3.7': bpo-19950: Clarify unittest TestCase instance use. (GH-6875) (GH-6938) https://github.com/python/cpyt

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

2018-05-18 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

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

2018-05-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: A buildbot is up and running: http://buildbot.python.org/all/#/builders?tags=%2Bubsan in order to see the errors though, you have to manually string search for "runtime error" in the giant test logs stdout. At the moment, Modules/_ctypes

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

2018-05-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue33321> ___ ___

[issue33589] Remove dummy member in GCHead

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

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

2018-05-22 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: Subprocess Thread handles grow with each call and aren't released until script ends -> Subprocess Thread handles grow with each call and aren't released [Windows] ___ Python tracker <https:/

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2018-05-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 8bb0b5b03cffa2a2e74f248ef479a9e7fbe95cf4 by Gregory P. Smith (Matthias Bussonnier) in branch 'master': bpo-33604: Remove Pending from hmac Deprecation warning. (GH-7062) https://github.com/python/cpyt

[issue33627] test-complex of test_numeric_tower.test_complex() crashes intermittently on Ubuntu buildbots

2018-05-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: FYI - the "ARMv7 Ubuntu 14.04" builder is in serious need of an update, I plan to turn it into a modern Debian system after 3.7.0 is out the door. A specific test crashing intermittently seems odd though, this buildbot has been running the sa

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