Skip to content

Add version independent bytes constructor #175

@DRayX

Description

@DRayX

In Python 2, bytes is simply an alias for str, and thus has the argument semantics of the str constructor, whereas in Python 3, bytes has the same argument semantics as they bytearray constructor. It would be convenient to have a version independent function that would follow the bytearray constructor semantics for the immutable binary data type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions