Opened 3 years ago

#20363 new defect

Graphics pickling failure

Reported by: vdelecroix Owned by:
Priority: major Milestone: sage-7.2
Component: pickling Keywords: bug, graphics
Cc: mhs Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

On sage-7.2.beta2 we have

sage: g2d = text('A', (0,0)) + arrow((0,0), (1,1), linestyle="dotted")
sage: g2d.show()
Launched png viewer for Graphics object consisting of 2 graphics primitives
sage: dumps(g2d)
---------------------------------------------------------------------------
Traceback (most recent call last):
...
PicklingError: Can't pickle <class 'sage.plot.arrow.ConditionalStroke'>: attribute
lookup sage.plot.arrow.ConditionalStroke failed

Though the following works!!

sage: g2d = text('A', (0,0)) + arrow((0,0), (1,1), linestyle="dotted")
sage: dumps(g2d)
'x\x9cU\x91\xc9n\xc20...\xe0'

Change History (0)

Note: See TracTickets for help on using tickets.