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 fails when setting a breakpoint to function names with generics-type annotations #125885

Open
baco opened this issue Oct 23, 2024 · 2 comments · May be fixed by #125892
Open

pdb fails when setting a breakpoint to function names with generics-type annotations #125885

baco opened this issue Oct 23, 2024 · 2 comments · May be fixed by #125892
Assignees
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@baco
Copy link

baco commented Oct 23, 2024

Bug report

Bug description:

When having the new genetics syntax type annotations on a function:

def bar[T](): ...

establishing a breakpoint returns the following message:

(Pdb) break bar
*** The specified object 'bar' is not a function or was not found along sys.path.

This also happens with temporary breakpoins tbreak. This was tested using Python versions from Debian official repositories. The failure appears in 3.13.0 and 3.12.6.

Analyzing with @asottile they point out that the following lines: Lib/pdb.py:121, Lib/pdb.py:141 may be causing this behavior.

This issue relates to #125884

CPython versions tested on:

3.13

Operating systems tested on:

Linux

@baco baco added the type-bug An unexpected behavior, bug, or error label Oct 23, 2024
@gaogaotiantian gaogaotiantian self-assigned this Oct 23, 2024
@picnixz picnixz added the stdlib Python modules in the Lib dir label Oct 23, 2024
@gaogaotiantian
Copy link
Member

This repros in 3.12 as well I believe?

@baco
Copy link
Author

baco commented Oct 23, 2024

This repros in 3.12 as well I believe?

Indeed, my bad saying it was not (got mixed up with the previous issue).

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 type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants