I think it's a (pretty?) printing problem. For me, running sage: a = vars()
works without error, but then sage: a gives the error. Same thing happens with locals(). -- John On Tuesday, May 2, 2017 at 2:37:25 AM UTC-7, Dima Pasechnik wrote: > > Indeed, it appears that vars() is broken, and has been broken since Sage > 7.5, at least. > Running > > sage: vars() > > ends with > > --------------------------------------------------------------------------- > TypeError Traceback (most recent call last) > <ipython-input-7-a05597ed1f36> in <module>() > ----> 1 vvv > > /home/dima/Sage/sage-dev/local/lib/python2.7/site-packages/IPython/core/displayhook.pyc > > in __call__(self, result) > 244 self.start_displayhook() > 245 self.write_output_prompt() > --> 246 format_dict, md_dict = self.compute_format_data(result) > 247 self.update_user_ns(result) > 248 self.fill_exec_result(result) > > /home/dima/Sage/sage-dev/local/lib/python2.7/site-packages/IPython/core/displayhook.pyc > > in compute_format_data(self, result) > 148 > 149 """ > --> 150 return self.shell.display_formatter.format(result) > 151 > 152 # This can be set to True by the write_output_prompt method in > a subclass > > /home/dima/Sage/sage-dev/local/lib/python2.7/site-packages/sage/repl/display/formatter.pyc > > in format(self, obj, include, exclude) > 158 # First, use Sage rich output if there is any > 159 PLAIN_TEXT = u'text/plain' > --> 160 sage_format, sage_metadata = self.dm.displayhook(obj) > 161 assert PLAIN_TEXT in sage_format, 'plain text is always > present' > 162 if sage_format.keys() != [PLAIN_TEXT]: > > TypeError: 'NoneType' object is not iterable > > On Tuesday, May 2, 2017 at 2:09:55 AM UTC+1, Jim Mooney wrote: >> >> When I try to use vars() to see local variables I get this pink error >> message that goes on about "crystals" What's that about? >> > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.