You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-...@googlegroups.com
The output of sage.misc.defaults.variable_names and latex_variable_names is of
type list if n=1 while type tuple if n>1. Is this really the intended
behaviour?
To concatenate another tuple/list to this output in a manner that is independent of n
requires an extra conversion.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-devel
On Thursday, June 4, 2020 at 11:56:55 AM UTC-7, Reimundo Heluani wrote:
The output of sage.misc.defaults.variable_names and latex_variable_names is of
type list if n=1 while type tuple if n>1. Is this really the intended
behaviour?
I would find that hard to believe. My guess the author forgot that a 1-element-tuple in python is spelled "(name,)" and hence found a list easier to return. It's also a routine that doesn't have a docstring or doctests!
I'd think "tuple" is the more appropriate thing to return here.
Reimundo Heluani
unread,
Jun 4, 2020, 5:37:44 PM6/4/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-...@googlegroups.com
Thanks, I opened #29797
I don't think my patchbot can test it cause I switched to gcc 10.1 and I will
need to either change the Makefile or compile gcc as an SPKG.