On Jan 10, 3:37 pm, kcrisman <kcris...@gmail.com> wrote: > While reviewing #12214, I found something odd. > > sage: polygon2d.options > {'alpha': 1, 'legend_label': None, 'rgbcolor': (0, 0, 1), 'thickness': > 0} > sage: P = polygon([[1,2], [5,6], [5,0]]); P # looks blue > sage: polygon2d.options['rgbcolor']=(1,0,0) > sage: P = polygon([[1,2], [5,6], [5,0]]); P # looks red > sage: polygon2d.options > {'alpha': 1, 'legend_label': None, 'rgbcolor': (1, 0, 0), 'thickness': > 0} > sage: polygon2d.defaults() > {'alpha': 1, 'legend_label': None, 'rgbcolor': (0, 0, 1), 'thickness': > 0} > sage: polygon2d.reset() > sage: polygon2d.options > {'alpha': 1, 'legend_label': None, 'rgbcolor': (1, 0, 0), 'thickness': > 0} > sage: P = polygon([[1,2], [5,6], [5,0]]); P # looks blue again like it > should > > So, in sum, the options really do change and reset, but the printed > out version doesn't seem to. > > Can someone who understands sage/misc/decorator.py better than I do > explain what's going on here? I'm really not sure where the printed > options dictionary is, and how it differs from the "real" one.
Jason says that this was actually seen this summer in the PREP workshop as well. Apparently the options decorator doesn't print correctly. See #12300. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org