Skip to content

Error in inspect.getattr_static usage snippet to resolve built-in C descriptors and hackiness in how it obtains these types #150506

@jonathandung

Description

@jonathandung

Documentation

Also, the line just below calling __get__ with no arguments if the descriptor is of one of these types is wrong. It should take the original object as well.

Originally posted by @jonathandung in #150501

Do not changes these. Instead I would recommend using types.* directly instead and open a separate PR.

Originally posted by @picnixz in #150504 (comment)

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir
    No fields configured for issues without a type.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions