Hi,

I am checking whether I should open a ticket. Any comment is welcome.

Cheers,

Denis

save_session() in Sage 9.5 has problems with ETuple variables:

sage: from sage.rings.polynomial.polydict import ETuple
sage: key = ETuple((1,2,3,4))
sage: save_session('data/sessions/example')
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-3-d30e03fac8a0> in <module>
----> 1 save_session('data/sessions/example')

/opt/Sage/sage-9.5/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage/misc/session.pyx
 
in sage.misc.session.save_session 
(build/cythonized/sage/misc/session.c:2629)()
    304     # We iterate only over the new variables that were defined in 
this
    305     # session, since those are the only ones we will save.
--> 306     for k in show_identifiers(hidden = True):
    307         try:
    308             x = state[k]

/opt/Sage/sage-9.5/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage/misc/session.pyx
 
in sage.misc.session.show_identifiers 
(build/cythonized/sage/misc/session.c:2392)()
    221 
    222     return sorted([x for x, v in state.items() if _is_new_var(x, v, 
hidden)
--> 223                    and not _in_extra_globals(x, v)])
    224 
    225 

/opt/Sage/sage-9.5/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage/misc/session.pyx
 
in sage.misc.session.show_identifiers._in_extra_globals 
(build/cythonized/sage/misc/session.c:2134)()
    218     _none = object()
    219     def _in_extra_globals(name, val):
--> 220         return val == DocTestTask.extra_globals.get(name, _none)
    221 
    222     return sorted([x for x, v in state.items() if _is_new_var(x, v, 
hidden)

TypeError: Argument 'other' has incorrect type (expected 
sage.rings.polynomial.polydict.ETuple, got object)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/25d3befd-e08f-4ac7-a75b-f274ced26e9an%40googlegroups.com.

Reply via email to