Skip to content
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

Complex numbers! #248

Open
1 task done
chillenb opened this issue Nov 11, 2024 · 1 comment · May be fixed by #249
Open
1 task done

Complex numbers! #248

chillenb opened this issue Nov 11, 2024 · 1 comment · May be fixed by #249

Comments

@chillenb
Copy link

Things to check first

  • I have searched the existing issues and didn't find my feature already requested there

Feature description

It would be nice to have encoding and decoding of Python complex type, as well as complex arrays.
These correspond to tags 43000 and 43001!

Use case

Complex numbers are the only unsupported Python builtin numeric type. If you support them, I'd have a good reason to use CBOR rather than JSON!

@chillenb
Copy link
Author

I have added support for complex numbers here:
https://github.com/chillenb/cbor2/tree/complex
will make a PR soon after I write tests.

@chillenb chillenb linked a pull request Nov 17, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant