Skip to content

BUG: ujson fix sniffing of dtype when decoding #1445

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

Conversation

Komnomnomnom
Copy link
Contributor

ujson was never auto-sniffing the dtype because PyArray_DescrConverter converts None to the numpy default dtype. It should instead use PyArray_DescrConverter2 which converts None to NULL.

The rest of the changes are to fix tests related to this "new" behaviour.

Tested with Python 2.7 on 64 bit OSX, 32 bit Ubuntu and 32 bit WinXP with Mingw32 and MSVC. EPD is still seg faulting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants