Skip to content

ctypes handles byte objects as string buffers without argtypes configuration #91

@s-m-e

Description

@s-m-e

Found while exploring #90. Usually, ctypes assumes c_int for arguments and return type if no directives via argtypes and/or restype are given, but somehow this also works for passing bytes objects in places where string buffers are usually expected. Not sure if it makes sense to allow this edge case without making the argument handling overly complicated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions