Skip to content

Conversation

@MichaelSquires
Copy link

@MichaelSquires MichaelSquires commented Apr 21, 2025

This PR fixes a bug (#12) where a SystemError would be raised when trying to serialize a dictionary with non-string keys.

The following changes were made:

  • Updated mut_primitive_to_element() to check the return value and handle the error case from PyUnicode_AsUTF8AndSize().
  • Added tests for new behavior.

@TkTech TkTech added the bug Something isn't working label Apr 23, 2025
@TkTech TkTech changed the base branch from main to 41_fixes April 29, 2025 14:41
@TkTech TkTech merged commit cf25af8 into TkTech:41_fixes Apr 29, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants