Skip to content

Broken bdb.Bdb.user_call API #118359

@George-Ogden

Description

@George-Ogden

Bug report

Bug description:

This is an issue with how bdb.Bdb.user_call is documented.
According to the bdb documentation, bdb.BdB.user_call has two arguments, frame and argument_list.
This is implemented in the bdb library here.
However, according to the sys documentation, sys.settrace will always set the arg to None and the code above acknowledges that "# XXX 'arg' is no longer used".
I don't know if this is based on a previous version that would give the call arguments, but I think we should change the signature of bdb.Bdb.user_call to exclude the argument_list parameter or state in the documentation that it will be None.

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions