amazon-ion / ion-python

A Python implementation of Amazon Ion.
https://amazon-ion.github.io/ion-docs/
Apache License 2.0
259 stars 50 forks source link

Add some Ion-to-Native and Native-to-Ion conversion utilities #203

Open jobarr-amzn opened 2 years ago

jobarr-amzn commented 2 years ago

In another channel a user suggested adding additional conversion utilities, including the ability to convert an entire IonPyDict to a native dict type.

rmarrowstone commented 1 year ago

Conceptually, IonPy types were designed with the idea that they are the native python type and that the native python can substitute for them. This duck-typing, seems at face value, a "pythonic" way to model them.

Unfortunately, user's expectations for how they work are different than reality. That be something about how they were modeled, or potentially the imperfection of the implementation. I don't think it's the foundational premise (which seems sound to me), but I don't know.