>>> import yaml
>>> s = yaml.dump(d)
- >>> print s
+ >>> print(s)
!hooke.curve.DataInfo
columns: [distance (m), force (N)]
<BLANKLINE>
[<CommandMessage curve info {curve: <Curve path>}>]
>>> z.command_stack[-1].arguments['curve'] == z
True
- >>> print yaml.dump(c) # doctest: +REPORT_UDIFF
+ >>> print(yaml.dump(c)) # doctest: +REPORT_UDIFF
&id001 !!python/object:hooke.curve.Curve
command_stack: !!python/object/new:hooke.command_stack.CommandStack
listitems:
YAML still works, though.
- >>> print yaml.dump(c.command_stack) # doctest: +REPORT_UDIFF
+ >>> print(yaml.dump(c.command_stack)) # doctest: +REPORT_UDIFF
&id001 !!python/object/new:hooke.command_stack.CommandStack
listitems:
- !!python/object:hooke.engine.CommandMessage