Skip to content

Argument Clinic: c_default does not work with bool and char converters #132753

Open
@serhiy-storchaka

Description

@serhiy-storchaka

The c_default option of the bool and char converters does not have effect.

It is especially bad for bool where the default value other than 0 and 1 can be used to detect whether the argument was passed. I have a quick and dirty fix for this.

For char, a serious rewrite of Argument Clinic is needed.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixestopic-argument-clinictype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions