Modify

Ticket #244 (new enhancement)

Opened 23 months ago

kwargs in dumper represent methods?

Reported by: anonymous Owned by: xi
Priority: normal Component: pyyaml
Severity: normal Keywords:
Cc:

Description

Why is it not possible to set a node's kwargs using the node factory methods found in the dumper class? This forces one to write code like:

node = dumper.represent_str(mystring) node.style = '|'

Is there a good reason for this, am I missing something, or would this be a simple improvement of the API?

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.