Skip to content

Unexisting function _ssl__SSLContext_security_level_set is referenced in source code #140692

Description

@youknowone

Bug report

Bug description:

https://github.com/python/cpython/blob/v3.15.0a1/Modules/clinic/_ssl.c.h#L1571

Introduced in #124993

This is documented as read-only attribute

https://docs.python.org/3/library/ssl.html#ssl.SSLContext.security_level

CPython versions tested on:

3.15

Operating systems tested on:

No response

Activity

  1. youknowone commented on Oct 28, 2025

    @youknowone
    ContributorAuthor

    This is autogenerated
    ref: #124993 (comment)

  2. ZeroIntensity commented on Oct 28, 2025

    @ZeroIntensity
    Member

    How'd you stumble upon this, anyway? Was there an issue with security_level that prompted you to look at the blame?

  3. youknowone commented on Oct 28, 2025

    @youknowone
    ContributorAuthor

    It was not a real bug or problem.
    I put Modules/clinic/_ssl.c to AI context. Then it was getting confused because it could find a setter from the code but not from the documentation. I thought it could be less confusing if unused macro branch is not generated.

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

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions