Ticket #193 (new enhancement)
Opened 2 years ago
PyYAML doesn't use __float__, etc.
|Reported by:||craigyk@…||Owned by:||xi|
I've noticed that PyYAML doesn't seem to respect the float, or other default type casters. This makes setting up serialization of some types trickier than it needs to be.
IE: I can convert a numpy array to nested lists easily using the tolist() method, but the values inside may still be one of the default bumpy types.... even though most of those types have a float method to cast the value...
I could add a bunch of yaml handlers, but that would be sub-optimal.