cbor2
cbor2 copied to clipboard
Complex numbers!
Things to check first
- [X] 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!
I have added support for complex numbers here: https://github.com/chillenb/cbor2/tree/complex will make a PR soon after I write tests.