You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can one make jsons.dump() treat bytes the same as Python3 str? Some sort of serializer/class/setting change/override, perhaps?
On my system (below) jsons.dump() prints my bytes type variables in a List-like format, even when assigning said variables a str literal (I think... maybe I don't understand Python3 properly? Quite possible). The pertinent excerpt:
How can one make
jsons.dump()
treatbytes
the same as Python3str
? Some sort of serializer/class/setting change/override, perhaps?On my system (below)
jsons.dump()
prints mybytes
type variables in a List-like format, even when assigning said variables astr
literal (I think... maybe I don't understand Python3 properly? Quite possible). The pertinent excerpt:"{'originally_bytes_type': ['1', '2', '3', '4'], 'originally_str___type': '1234'}"
All the context:
The text was updated successfully, but these errors were encountered: