mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
gh-108463: Make expressions/statements work as expected in pdb (#108464)
This commit is contained in:
parent
7855d325e6
commit
6304d983a0
5 changed files with 52 additions and 0 deletions
|
|
@ -237,6 +237,9 @@ class Pdb(bdb.Bdb, cmd.Cmd):
|
|||
pass
|
||||
self.allow_kbdint = False
|
||||
self.nosigint = nosigint
|
||||
# Consider these characters as part of the command so when the users type
|
||||
# c.a or c['a'], it won't be recognized as a c(ontinue) command
|
||||
self.identchars = cmd.Cmd.identchars + '=.[](),"\'+-*/%@&|<>~^'
|
||||
|
||||
# Read ~/.pdbrc and ./.pdbrc
|
||||
self.rcLines = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue