◐ Shell
clean mode source ↗

bpo-24037: Add Argument Clinic converter `bool(accept={int})`. by serhiy-storchaka · Pull Request #485 · python/cpython

Conversation

@serhiy-storchaka

It is used for semantical booleans using 'i' format unit. This allows to not repeat the default value for Python and C and will help in converting to bool in future.

@mention-bot

vstinner

duboviy

vadmium


- bpo-24037: Argument Clinic now uses the converter `bool(accept={int})` rather
of `int` for semantical booleans. This allows to not repeat the default
value for Python and C and will help in converting to `bool` in future.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rather of → rather than
This allows to not repeat . . . → This avoids repeating . . . [see earlier changes I made regarding “allows to”: https://bugs.python.org/issue26304]

Labels