ion-python icon indicating copy to clipboard operation
ion-python copied to clipboard

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

Open jobarr-amzn opened this issue 2 years ago • 1 comments

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

jobarr-amzn avatar Jun 21 '22 20:06 jobarr-amzn

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.

rmarrowstone avatar Dec 01 '22 18:12 rmarrowstone