Ticket #193 (new enhancement)

Opened 3 years ago

PyYAML doesn't use __float__, etc.

Reported by: craigyk@… Owned by: xi
Priority: normal Component: pyyaml
Severity: normal Keywords:


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.



Add a comment

Modify Ticket

Change Properties
<Author field>
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from xi. Next status will be 'new'
The owner will be changed from xi to anonymous. Next status will be 'assigned'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.