Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdb: contradictory msg for "exit"/Ctrl-D #36431

Closed
flight mannequin opened this issue Apr 14, 2002 · 2 comments
Closed

pdb: contradictory msg for "exit"/Ctrl-D #36431

flight mannequin opened this issue Apr 14, 2002 · 2 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@flight
Copy link
Mannequin

flight mannequin commented Apr 14, 2002

BPO 543674
Nosy @gvanrossum

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/gvanrossum'
closed_at = <Date 2002-04-15.00:49:32.000>
created_at = <Date 2002-04-14.11:33:26.000>
labels = ['library']
title = 'pdb: contradictory msg for "exit"/Ctrl-D'
updated_at = <Date 2002-04-15.00:49:32.000>
user = 'https://bugs.python.org/flight'

bugs.python.org fields:

activity = <Date 2002-04-15.00:49:32.000>
actor = 'gvanrossum'
assignee = 'gvanrossum'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2002-04-14.11:33:26.000>
creator = 'flight'
dependencies = []
files = []
hgrepos = []
issue_num = 543674
keywords = []
message_count = 2.0
messages = ['10326', '10327']
nosy_count = 2.0
nosy_names = ['gvanrossum', 'flight']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue543674'
versions = []

@flight
Copy link
Mannequin Author

flight mannequin commented Apr 14, 2002

pdb gives contradictory messages when I try to leave it:

"exit" gives me the message 'Use Ctrl-D (i.e. EOF) to
exit.'; when I then press "Ctrl-D", nothing happens.
Only "quit" will exit the debugger:

freefly:1> python2.2 /usr/lib/python2.2/pdb.py
/tmp/xxx.py
> <string>(0)?()
(Pdb) exit
'Use Ctrl-D (i.e. EOF) to exit.'
(Pdb) Ctrl-D quit
freefly:2>

The cause for this trouble is that exit() is defined in
site.py to issue that warning, but then, "Ctrl-D" is
not accordingly handled in pdb.py. So either pdb.py
should be fixed to handle "Ctrl-D" like "quit", or
"exit" should be changed in pdb.py to either quit the
program or just do nothing.

@flight flight mannequin closed this as completed Apr 14, 2002
@flight flight mannequin assigned gvanrossum Apr 14, 2002
@flight flight mannequin added the stdlib Python modules in the Lib dir label Apr 14, 2002
@flight flight mannequin closed this as completed Apr 14, 2002
@flight flight mannequin assigned gvanrossum Apr 14, 2002
@flight flight mannequin added the stdlib Python modules in the Lib dir label Apr 14, 2002
@gvanrossum
Copy link
Member

Logged In: YES
user_id=6380

The easiest solution was to add exit as an alias of quit,
and that's what I've done in CVS. There's still the problem
with ^D being ignored; I'd be happy to get a patch for that.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

1 participant