Skip to content

Implement int.bit_length and struct.pack("e") #12422

@smurfix

Description

@smurfix

I am porting a (minimal) CBOR codec to micropython.

In the process I hit on two deficiencies wrt CPython:

  • struct should support the e format code for half-float (16 bit) numbers.

  • int.bit_count would really help with encoding integers, esp. bigints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature requests, new feature implementations

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions