[issue24176] Incorrect parsing of unpacked expressions in call

2015-05-13 Thread Thomas Caswell
New submission from Thomas Caswell: On the current tip (changeset: 96023:4b5461dcd190) the following results in a syntax error def test(a='a', b='b'): print(a, b) opta = dict() optb = dict(a=1, b=2) test(**(opta or {})) # - works on all python test(**optb or {})# - fails on current

[issue24266] raw_input + readline: Ctrl+C during search breaks readline

2016-01-31 Thread Thomas Caswell
Thomas Caswell added the comment: For reference https://github.com/ludwigschwardt/python-gnureadline/pull/47 is what a back-port of the functionality looks like. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue24266] raw_input + readline: Ctrl+C during search breaks readline

2016-01-31 Thread Thomas Caswell
Thomas Caswell added the comment: I do not think that readline-cancel.patch is sufficient. The clean up function that readline uses internally (http://git.savannah.gnu.org/cgit/readline.git/tree/isearch.c#n720 ) also cleans up the context that used by isearch. The functions to cleanup

[issue22757] TclStackFree: incorrect freePtr. Call out of sequence?

2016-04-02 Thread Thomas Caswell
Thomas Caswell added the comment: I do not think this got reported to mpl, is a year and a half old, and has no example, probably can be closed. -- nosy: +tcaswell ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29481] 3.6.0 doc describes 3.6.1 feature - typing.Deque

2017-02-14 Thread Thomas Caswell
Thomas Caswell added the comment: I am not optimistic about the speed at which my employer will get this sorted out. better to just fix it and drop my commit! On Tue, Feb 14, 2017, 23:43 Mariatta Wijaya <rep...@bugs.python.org> wrote: Mariatta Wijaya added the comment: Thanks, Raymon

[issue29481] 3.6.0 doc describes 3.6.1 feature - typing.Deque

2017-02-12 Thread Thomas Caswell
Thomas Caswell added the comment: I agree this is very confusing (and in fact confused me for about an hour between getting import errors, double checking the docs, checking I was in the right env, double checking the docs, checking the source of my env, double checking the docs, checking

[issue29481] 3.6.0 doc describes 3.6.1 feature - typing.Deque

2017-02-12 Thread Thomas Caswell
Changes by Thomas Caswell <tcasw...@gmail.com>: -- pull_requests: +50 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29481> ___ _

[issue30623] python-nightly import numpy fails since recently

2017-06-24 Thread Thomas Caswell
Thomas Caswell added the comment: https://github.com/python/cpython/pull/1236 has been merged, I believe this issue can be closed. -- nosy: +tcaswell ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue31286] import in finally results in SystemError

2017-08-26 Thread Thomas Caswell
New submission from Thomas Caswell: Code to reproduce: def import_in_finally_fail(): try: print('yo') finally: import asyncio.queues as aq Results in: In [68]: import_in_finally_fail() yo

[issue31286] import in finally results in SystemError

2017-08-29 Thread Thomas Caswell
Thomas Caswell added the comment: Your welcome! Matplotlib ended up just moving the import out of the finally block once we understood the issue. Tom On Tue, Aug 29, 2017 at 8:50 AM Serhiy Storchaka <rep...@bugs.python.org> wrote: > > Serhiy Storchaka added the comment: &

[issue31546] PyOS_InputHook is not called when waiting for input() in Windows

2018-06-27 Thread Thomas Caswell
Change by Thomas Caswell : -- keywords: +patch pull_requests: +7589 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31546> ___ ___ Py

[issue37289] regression in cython due to peephole optomization

2019-06-14 Thread Thomas Caswell
New submission from Thomas Caswell : The fix for https://bugs.python.org/issue37213 in 3498c642f4e83f3d8e2214654c0fa8e0d51cebe5 (https://github.com/python/cpython/pull/13969) seems to break building numpy (master) with cython (master) due to a pickle failure. The traceback (which is mostly

[issue37289] regression in cython due to peephole optomization

2019-06-14 Thread Thomas Caswell
Thomas Caswell added the comment: This change also causes failures in the cython test suite (see attached). -- Added file: https://bugs.python.org/file48422/cython_test_log.txt ___ Python tracker <https://bugs.python.org/issue37

[issue37289] regression in Cython when pickling objects

2019-06-15 Thread Thomas Caswell
Thomas Caswell added the comment: I can confirm that master branches of cpython, cython, and numpy all build together again, thank you for the quick investigation and fix! -- ___ Python tracker <https://bugs.python.org/issue37

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-08-29 Thread Thomas Caswell
Change by Thomas Caswell : Added file: https://bugs.python.org/file48569/python_bisect.sh ___ Python tracker <https://bugs.python.org/issue37980> ___ ___ Python-bug

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-08-29 Thread Thomas Caswell
New submission from Thomas Caswell : In python37, numpy1.17 the following runs without warning. import numpy as np sorted([1, 2], reverse=np.bool_(True)) with python38 this emits a DeprecationWarning: In future, it will be an error for 'np.bool_' scalars to be interpreted as an index I

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-08-29 Thread Thomas Caswell
Thomas Caswell added the comment: xref numpy issue https://github.com/numpy/numpy/issues/14397 -- ___ Python tracker <https://bugs.python.org/issue37

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-08-29 Thread Thomas Caswell
Change by Thomas Caswell : Added file: https://bugs.python.org/file48570/test.py ___ Python tracker <https://bugs.python.org/issue37980> ___ ___ Python-bugs-list mailin

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-08-29 Thread Thomas Caswell
Change by Thomas Caswell : -- components: +Library (Lib) versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue37980> ___ ___ Python-bugs-list m

[issue37933] faulthandler causes segfaults

2019-08-23 Thread Thomas Caswell
Change by Thomas Caswell : -- components: +Extension Modules -Library (Lib) ___ Python tracker <https://bugs.python.org/issue37933> ___ ___ Python-bugs-list m

[issue37933] faulthandler causes segfaults

2019-08-23 Thread Thomas Caswell
New submission from Thomas Caswell : Changing faulthandler to only allocate it's stack when use causes python to segfault with import faulthandler faulthandler.cancel_dump_traceback_later() https://bugs.python.org/issue37851 https://github.com/python/cpython/pull/15358 -- components

[issue37933] faulthandler causes segfaults

2019-08-23 Thread Thomas Caswell
Change by Thomas Caswell : -- keywords: +patch pull_requests: +15133 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15440 ___ Python tracker <https://bugs.python.org/issu

[issue37289] regression in Cython when pickling objects

2019-10-26 Thread Thomas Caswell
Thomas Caswell added the comment: I believe this can be closed, the regression has been fixed and there is now a test to prevent it from coming back. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37980] regression when passing numpy bools to sorted(..., reverse=r)

2019-10-11 Thread Thomas Caswell
Thomas Caswell added the comment: Any update on resolving this? -- ___ Python tracker <https://bugs.python.org/issue37980> ___ ___ Python-bugs-list mailin

[issue40574] segfault causing regression from PEP 573 implementation (PyQt5)

2020-05-11 Thread Thomas Caswell
Thomas Caswell added the comment: The path is - on a commit prior to e1becf46b4e3ba6d7d32ebf4bbd3e0804766a423 install pyqt-sip. pip will build a wheel for you called PyQt5_sip-12.7.2-cp39-cp39-linux_x86_64.whl - on a commit after e1becf46b4e3ba6d7d32ebf4bbd3e0804766a423 if you do `pip

[issue40574] segfault causing regression from PEP 573 implementation (PyQt5)

2020-05-12 Thread Thomas Caswell
Thomas Caswell added the comment: That seems reasonable. To be pedantic, it is pyqt5-sip (not sip) that was the source of the problem. I am going to open an issue with pip to disable caching locally built wheels for pre-released versions of Python

[issue40257] Improve the use of __doc__ in pydoc

2020-05-17 Thread Thomas Caswell
Change by Thomas Caswell : -- nosy: +tcaswell ___ Python tracker <https://bugs.python.org/issue40257> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40574] segfault causing regression from PEP 573 implementation (PyQt5)

2020-05-10 Thread Thomas Caswell
Thomas Caswell added the comment: The script I used for the bisect was: --- TARGET_ENV=bisect_env rm -r ~/.pybuild/$TARGET_ENV || true git clean -xfd ./configure --prefix=/home/tcaswell/.pybuild/$TARGET_ENV make -j 9 make install ~/.pybuild/$TARGET_ENV/bin/python3 -m venv --copies --clear

[issue40574] segfault causing regression from PEP 573 implementation (PyQt5)

2020-05-10 Thread Thomas Caswell
Thomas Caswell added the comment: I think I have figured out the problem. I had a locally built and cached wheel of PyQt5-sip from before PEP573 went in. If that wheel is used for later commits I get the segfault, if I rebuilt the wheel from source it works. I am not sure

[issue40574] segfault causing regression from PEP 573 implementation

2020-05-08 Thread Thomas Caswell
New submission from Thomas Caswell : https://github.com/python/cpython/commit/e1becf46b4e3ba6d7d32ebf4bbd3e0804766a423 causes pyqt5 to segfault an accessing an attribute To reproduce this: pip install pyqt5 pip install sip python -c "import PyQt5.QtCore; PyQt5.QtCore.Qt.Key_Co

[issue40574] segfault causing regression from PEP 573 implementation

2020-05-08 Thread Thomas Caswell
Thomas Caswell added the comment: Sorry, forgot to add this is on Linux. -- ___ Python tracker <https://bugs.python.org/issue40574> ___ ___ Python-bugs-list m

[issue41520] 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-10 Thread Thomas Caswell
Thomas Caswell added the comment: bisecting agrees with Matthias: # first bad commit: [c067183605cf84bb1a246635f52827251d0476f8] bpo-40807: Show warnings once from codeop._maybe_compile (GH-20486) -- nosy: +tcaswell ___ Python tracker <ht

[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-06-04 Thread Thomas Caswell
Thomas Caswell added the comment: This change also affects PyQt6: Python 3.10.0b2+ (heads/3.10:d0991e2db3, Jun 1 2021, 11:42:08) [GCC 11.1.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import PyQt

[issue45251] signal.SIGCLD alias is not available on OSX

2021-09-20 Thread Thomas Caswell
New submission from Thomas Caswell : The module attribute signal.SIGCLD (https://docs.python.org/3/library/signal.html#signal.SIGCLD) is an "archaic" (quoting from the GNU C Library source) alias for signal.SIGCHLD (https://docs.python.org/3/library/signal.html#sign