[issue13120] Default nosigint option to pdb.Pdb() prevents use in non-main thread

2019-03-09 Thread daniel hahler
daniel hahler added the comment: Just for reference: there is a similar issue with `interaction`: https://bugs.python.org/issue36250. -- nosy: +blueyed ___ Python tracker <https://bugs.python.org/issue13

[issue36250] pdb: interaction might cause "ValueError: signal only works in main thread"

2019-03-09 Thread daniel hahler
Change by daniel hahler : -- keywords: +patch pull_requests: +12239 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36250> ___ ___ Py

[issue36250] pdb: interaction might cause "ValueError: signal only works in main thread"

2019-03-09 Thread daniel hahler
New submission from daniel hahler : This is similar to https://bugs.python.org/issue13120. I have a patch for a fix already, but no test - will add a PR for it. Fixed in pdbpp in https://github.com/antocuni/pdb/pull/143, which also has a test that demonstrates it. -- components

[issue13120] Default nosigint option to pdb.Pdb() prevents use in non-main thread

2019-03-09 Thread daniel hahler
Change by daniel hahler : -- pull_requests: +12238 ___ Python tracker <https://bugs.python.org/issue13120> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35931] pdb: "debug print(" crashes with SyntaxError

2019-02-28 Thread daniel hahler
Change by daniel hahler : -- pull_requests: +12109 stage: resolved -> patch review ___ Python tracker <https://bugs.python.org/issue35931> ___ ___ Python-

[issue35931] pdb: "debug print(" crashes with SyntaxError

2019-02-28 Thread daniel hahler
daniel hahler added the comment: Re-opening: it currently still crashes with a NameError when using "debug doesnotexist", or "debug doesnotexist()". Will create a new PR for this. -- status: closed -> open ___

[issue31078] pdb's debug command (Pdb.do_debug) doesn't use rawinput even if the parent pdb uses rawinput

2019-02-27 Thread daniel hahler
daniel hahler added the comment: I can confirm that this fixes cursor keys not working properly after "debug foo()" (recursive debugging) with pdb. -- nosy: +blueyed versions: +Python 3.8 ___ Python tracker <https://bugs.python.o

[issue35931] pdb: "debug print(" crashes with SyntaxError

2019-02-15 Thread daniel hahler
daniel hahler added the comment: Thanks for the review and backport! -- ___ Python tracker <https://bugs.python.org/issue35931> ___ ___ Python-bugs-list mailin

[issue35931] pdb: "debug print(" crashes with SyntaxError

2019-02-07 Thread daniel hahler
New submission from daniel hahler : `debug print(` will make pdb crash with a SyntaxError: % python -c '__import__("pdb").set_trace()' --Return-- > (1)()->None (Pdb) print( *** SyntaxError: unexpected EOF while parsing (Pdb) debug print( EN

[issue35931] pdb: "debug print(" crashes with SyntaxError

2019-02-07 Thread daniel hahler
Change by daniel hahler : -- keywords: +patch, patch pull_requests: +11767, 11768 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35931] pdb: "debug print(" crashes with SyntaxError

2019-02-07 Thread daniel hahler
Change by daniel hahler : -- keywords: +patch pull_requests: +11767 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35931> ___ ___ Py

[issue35270] Cmd.complete does not handle cmd=None

2018-11-17 Thread daniel hahler
Change by daniel hahler : -- keywords: +patch pull_requests: +9833 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35270> ___ ___ Py

[issue35270] Cmd.complete does not handle cmd=None

2018-11-17 Thread daniel hahler
New submission from daniel hahler : When `parseline` returns `None` for `cmd` (like pdb++ might cause it when changing a cmd "disable" to "!disable"), the following will cause a TypeError: > compfunc = getattr(self, 'complete_' + cmd) "None" should be a

[issue35137] Exception in isinstance when __class__ property raises

2018-11-01 Thread daniel hahler
Change by daniel hahler : -- nosy: +blueyed ___ Python tracker <https://bugs.python.org/issue35137> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34444] Module's __file__ should be absolute always ("." in sys.path)

2018-08-20 Thread daniel hahler
New submission from daniel hahler : With "." in sys.path the "__file__" attribute will be a relative path, and therefore cannot be used after "chdir". This likely affects relative paths in general, but have not tested it. ``` import os import sys sys.pa

[issue33949] tests: allow to select tests using loadTestsFromName

2018-06-23 Thread daniel hahler
New submission from daniel hahler : I was not aware of `python -m test -m …`, but think that supporting `python -m test test.module.class.name` should be supported for selecting a single test. -- components: Tests messages: 320325 nosy: blueyed priority: normal pull_requests: 7489

[issue16482] pdb.set_trace() clobbering traceback on error

2018-03-27 Thread daniel hahler
daniel hahler <python-b...@thequod.de> added the comment: Just for reference: https://github.com/python/cpython/pull/6233 is about fixing this. -- keywords: +patch nosy: +blueyed pull_requests: +5995 stage: needs patch -> patch review _

[issue31495] Wrong offset with IndentationError ("expected an indented block")

2017-09-16 Thread daniel hahler
New submission from daniel hahler: Given the following file `t-expected-indent.py`: ``` if 1: foo ``` python t-expected-indent.py reports: ``` File "t-expected-indent.py", line 2 foo ^ IndentationError: expected an indented block ``` However, it should get reported fo

[issue27900] ctypes fails to find ncurses via ncursesw on Arch Linux

2016-08-30 Thread daniel hahler
New submission from daniel hahler: The following code fails on Arch Linux: import ctypes.util print(ctypes.util.find_library("ncurses")) It first looks at "ldconfig -p" (via _findSoname_ldconfig), which only contains: libncursesw.so.6 (libc6,x86-64) => /u

[issue20658] os.environ.clear() fails with empty keys (posix.unsetenv)

2014-02-19 Thread daniel hahler
daniel hahler added the comment: Please note that I have noticed this not because of setting it via `os.environ`, but because a program using `os.environ.clear()` crashed: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1281086 I cannot say how this unusual entry was added

[issue20658] os.environ.clear() fails with empty keys (posix.unsetenv)

2014-02-19 Thread daniel hahler
daniel hahler added the comment: It would help to know if the key was set manually by apport, or if it comes from the real environment. The environment looks correct: It comes from the real environment. I wanted to use apport, but could not from the current shell, because of this bug. I

[issue20658] os.environ.clear() fails with empty keys (posix.unsetenv)

2014-02-17 Thread daniel hahler
New submission from daniel hahler: posix.unsetenv fails to clear the environment if there's an entry with an empty key. TEST CASE: Python 2.7.6 (default, Jan 6 2014, 17:05:19) [GCC 4.8.1] on linux2 Type help, copyright, credits or license for more information. import os

[issue9084] vimrc: use matchall() instead of :match to allow multiple matches

2010-06-25 Thread daniel hahler
New submission from daniel hahler python-b...@thequod.de: This patch fixes the vimrc example file to use matchadd() instead of :match, so that the second match does not overwrite the first one. This resulted in leading tabs not highlighted as BadWhitespace. -- components: Demos

[issue9084] vimrc: use matchall() instead of :match to allow multiple matches

2010-06-25 Thread daniel hahler
Changes by daniel hahler python-b...@thequod.de: -- keywords: +patch Added file: http://bugs.python.org/file17773/python-vimrc-use-matchadd.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9084

<    1   2