[issue5215] change value of local variable in debug

2019-04-23 Thread daniel hahler
daniel hahler added the comment: @Andrei That is something different, caused by "y" only being defined later. But it would be nice if it would work. Should be a separate/new issue though. -- nosy: +blueyed ___ Python track

[issue5215] change value of local variable in debug

2019-04-23 Thread daniel hahler
daniel hahler added the comment: This works however (Python 3.7), but is just buggy in pdbpp (another project). -- ___ Python tracker <https://bugs.python.org/issue5

[issue9633] pdb go stack up/down

2019-04-23 Thread daniel hahler
Change by daniel hahler : -- nosy: +blueyed ___ Python tracker <https://bugs.python.org/issue9633> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21281] DEBUGGING: Simultaneous stopping of all threads on breakpoint and switching between threads

2019-04-27 Thread daniel hahler
daniel hahler added the comment: This is a good idea. I am currently leaning towards using a threading.Lock around `Pdb.interaction`, or `pdb.set_trace` with pdb++. This would at least mitigate the issue where `pdb.set_trace` is used in some code that gets executed again, and two pdb

[issue21281] DEBUGGING: Simultaneous stopping of all threads on breakpoint and switching between threads

2019-04-27 Thread daniel hahler
Change by daniel hahler : -- nosy: +blueyed ___ Python tracker <https://bugs.python.org/issue21281> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2019-04-27 Thread daniel hahler
Change by daniel hahler : -- nosy: +blueyed ___ Python tracker <https://bugs.python.org/issue23163> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35824] http.cookies._CookiePattern modifying regular expressions

2019-05-02 Thread daniel hahler
daniel hahler added the comment: I seems like http.cookiejar should be used for clients, which includes more relaxed parsing of cookies. This is mentioned in the docs at https://github.com/python/cpython/blame/443fe5a52a3d6a101795380227ced38b4b5e0a8b/Doc/library/http.cookies.rst#L63-L65

[issue36474] RecursionError resets trace function set via sys.settrace

2019-05-13 Thread daniel hahler
daniel hahler added the comment: Duplicate of https://bugs.python.org/issue10933. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

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

2019-05-16 Thread daniel hahler
daniel hahler added the comment: It was added in 477c8d5e702 (a huge svn merge commit), with this reference: r45955 | georg.brandl | 2006-05-10 19:13:20 +0200 (Wed, 10 May 2006) | 4 lines Patch #721464: pdb.Pdb instances can now be given explicit stdin and stdout

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

2019-05-16 Thread daniel hahler
daniel hahler added the comment: Just for reference and searchability: this causes tab completion to not work with `debug foo()` also. -- ___ Python tracker <https://bugs.python.org/issue31

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

2019-05-16 Thread daniel hahler
daniel hahler added the comment: > I think a good alternative patch might be: This however makes it behave different in tests, where stdout might be mocked/wrapped intentionally. Therefore I think using the parent's `use_rawinput` is the better fix for this (the originally propos

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

2018-03-27 Thread daniel hahler
daniel hahler 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 ___ Python tracker <

[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

[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.path.

[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:

[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" s

[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"

[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 to the

[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 b

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

2010-06-25 Thread daniel hahler
New submission from daniel hahler : 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: Demo

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

2010-06-25 Thread daniel hahler
Changes by daniel hahler : -- keywords: +patch Added file: http://bugs.python.org/file17773/python-vimrc-use-matchadd.diff ___ Python tracker <http://bugs.python.org/issue9

[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

<    1   2