Visitar URL original
Argument Clinic: c_default does not work with bool and char converters · Issue #132753 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20260503070222/https://github.com/python/cpython/issues/132753
Skip to content
/ cpython Public

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

@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