Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
smurfix opened this issue Sep 11, 2023 · 2 comments
Closed

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

smurfix opened this issue Sep 11, 2023 · 2 comments
Labels
enhancement Feature requests, new feature implementations

Comments

@smurfix
Copy link
Contributor

smurfix commented Sep 11, 2023

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.

@smurfix smurfix added the enhancement Feature requests, new feature implementations label Sep 11, 2023
@robert-hh
Copy link
Contributor

See PR #11679

@smurfix
Copy link
Contributor Author

smurfix commented Sep 11, 2023

Ugh, why the feck did I overlook these?

Struct is #7467, thus closing here

@smurfix smurfix closed this as completed Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests, new feature implementations
Projects
None yet
Development

No branches or pull requests

2 participants