Modify

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:
Cc:

Description

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.

Attachments

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
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'
Author


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

 
Note: See TracTickets for help on using tickets.