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

[Distutils] strtobool #99867

Closed
martigan opened this issue Nov 29, 2022 · 1 comment
Closed

[Distutils] strtobool #99867

martigan opened this issue Nov 29, 2022 · 1 comment
Labels
docs Documentation in the Doc dir stdlib Python modules in the Lib dir

Comments

@martigan
Copy link

Documentation

Specification of distutils.util function strtobool doesn't mention that the values are case insensitive.

python_38_strtobool

https://docs.python.org/3.8/distutils/apiref.html#distutils.util.strtobool

I didn't tested on other python version but implementation found here hadn't change for a while.

@martigan martigan added the docs Documentation in the Doc dir label Nov 29, 2022
@hugovk hugovk added the stdlib Python modules in the Lib dir label Nov 29, 2022
@hugovk
Copy link
Member

hugovk commented Nov 29, 2022

Thank you for the report.

I'll note that distutils is deprecated and has been removed from the upcoming Python 3.12:

The PEP's migration advice says there's no planned replacement for strtobool and you'll need to implement it yourself, but it's only a dozen lines of code so you could grab directly.

We could update the docs for 3.10 and 3.11 (and separately, possibly update the docs at setuptools), but given the deprecation/removal status it's probably not worth it.

@hugovk hugovk added the pending The issue will be closed if no feedback is provided label Nov 29, 2022
@hugovk hugovk closed this as not planned Won't fix, can't repro, duplicate, stale Dec 1, 2022
@hugovk hugovk removed the pending The issue will be closed if no feedback is provided label Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

2 participants