Skip to content

ctypes _as_parameter_ does not mention all possible types #107442

Closed
@tomasr8

Description

@tomasr8

Documentation

The _as_parameter_ attribute can be used when one wants to pass a custom object a ctypes function.
The documentation says:

it must be one of integer, string, or bytes

However, one can also use a ctypes instance or another object which itself has the _as_parameter_ attribute.
The documentation should be updated to include these two additional possibilities.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions