Opened 3 years ago
Closed 7 months ago
#25253 closed defect (fixed)
Singular can't handle nested lists
Reported by:  ghBrentBaccala  Owned by:  

Priority:  minor  Milestone:  sage9.2 
Component:  interfaces  Keywords:  Singular 
Cc:  ghmwageringel  Merged in:  
Authors:  Brent Baccala  Reviewers:  Markus Wageringel 
Report Upstream:  N/A  Work issues:  
Branch:  0054a2f (Commits, GitHub, GitLab)  Commit:  0054a2fd8a14d75dc9a24436f514c25bcacef1fc 
Dependencies:  Stopgaps: 
Description
There doesn't seem to be any way to create nested lists using Sage's Singular interface:
sage: b = singular.list([1, 2, [3, 4]]) sage: b [1]: 1 [2]: 2 [3]: 4*gen(2)+3*gen(1) sage: b = singular.list([1, 2, singular.list([3, 4])])
The last command just hangs indefinitely.
Change History (15)
comment:1 Changed 3 years ago by
 Branch set to public/25253
 Commit set to 99e273a0f23d2434c60f5c03f1c2bdc0504ce34f
 Status changed from new to needs_review
comment:2 Changed 3 years ago by
 Commit changed from 99e273a0f23d2434c60f5c03f1c2bdc0504ce34f to e8a52cb3357c410ff99f3edcc688bda69155e0a0
Branch pushed to git repo; I updated commit sha1. New commits:
e8a52cb  Trac #25253: fix docstring

comment:3 Changed 2 years ago by
 Commit changed from e8a52cb3357c410ff99f3edcc688bda69155e0a0 to 7853a3a9c2df0f9fcbdbbaaae19410115b54a5b3
Branch pushed to git repo; I updated commit sha1. New commits:
7853a3a  Merge tag '8.4' into public/25253

comment:4 Changed 2 years ago by
 Commit changed from 7853a3a9c2df0f9fcbdbbaaae19410115b54a5b3 to 4e6bdacdb6ba0178562231d6637d0c9e4afd9f61
Branch pushed to git repo; I updated commit sha1. New commits:
4e6bdac  Trac #25253: pyflakes (remove unused import)

comment:5 Changed 23 months ago by
 Commit changed from 4e6bdacdb6ba0178562231d6637d0c9e4afd9f61 to b47e2722ac3c45888259f1118dbe1f4e7ba72f83
Branch pushed to git repo; I updated commit sha1. New commits:
b47e272  Merge tag '8.7' into public/25253

comment:6 Changed 23 months ago by
 Milestone changed from sage8.2 to sage8.8
comment:7 Changed 20 months ago by
 Milestone changed from sage8.8 to sage8.9
Moving tickets from the Sage 8.8 milestone that have been actively worked on in the last six months to the next release milestone (optimistically).
comment:8 Changed 14 months ago by
 Milestone changed from sage8.9 to sage9.1
Ticket retargeted after milestone closed
comment:9 Changed 10 months ago by
 Milestone changed from sage9.1 to sage9.2
comment:10 Changed 8 months ago by
 Cc ghmwageringel added
comment:11 Changed 8 months ago by
integer_types is no longer available, just use int
comment:12 Changed 7 months ago by
 Commit changed from b47e2722ac3c45888259f1118dbe1f4e7ba72f83 to 0054a2fd8a14d75dc9a24436f514c25bcacef1fc
comment:13 Changed 7 months ago by
 Reviewers set to Markus Wageringel
As suggested, I have removed the use of integer_types
. Other than that, this looks good to me. If the bots are happy, we can set this to positive.
comment:14 Changed 7 months ago by
 Status changed from needs_review to positive_review
comment:15 Changed 7 months ago by
 Branch changed from public/25253 to 0054a2fd8a14d75dc9a24436f514c25bcacef1fc
 Resolution set to fixed
 Status changed from positive_review to closed
New commits:
Trac #25253: fix singular.list() to handle nested lists