Skip to content

[Distutils] strtobool #99867

Description

@martigan

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.

Activity

  1. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Nov 29, 2022
  2. hugovk commented on Nov 29, 2022

    @hugovk
    Member

    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.

  3. added
    pendingThe issue will be closed if no feedback is provided
    on Nov 29, 2022
  4. removed
    pendingThe issue will be closed if no feedback is provided
    on Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions