Opened 3 years ago

Closed 13 months ago

#25253 closed defect (fixed)

Singular can't handle nested lists

Reported by: gh-BrentBaccala Owned by:
Priority: minor Milestone: sage-9.2
Component: interfaces Keywords: Singular
Cc: gh-mwageringel Merged in:
Authors: Brent Baccala Reviewers: Markus Wageringel
Report Upstream: N/A Work issues:
Branch: 0054a2f (Commits, GitHub, GitLab) Commit: 0054a2fd8a14d75dc9a24436f514c25bcacef1fc
Dependencies: Stopgaps:

Status badges

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 gh-BrentBaccala

  • Authors set to Brent Baccala
  • Branch set to public/25253
  • Commit set to 99e273a0f23d2434c60f5c03f1c2bdc0504ce34f
  • Status changed from new to needs_review

New commits:

99e273aTrac #25253: fix singular.list() to handle nested lists

comment:2 Changed 3 years ago by git

  • Commit changed from 99e273a0f23d2434c60f5c03f1c2bdc0504ce34f to e8a52cb3357c410ff99f3edcc688bda69155e0a0

Branch pushed to git repo; I updated commit sha1. New commits:

e8a52cbTrac #25253: fix docstring

comment:3 Changed 3 years ago by git

  • Commit changed from e8a52cb3357c410ff99f3edcc688bda69155e0a0 to 7853a3a9c2df0f9fcbdbbaaae19410115b54a5b3

Branch pushed to git repo; I updated commit sha1. New commits:

7853a3aMerge tag '8.4' into public/25253

comment:4 Changed 3 years ago by git

  • Commit changed from 7853a3a9c2df0f9fcbdbbaaae19410115b54a5b3 to 4e6bdacdb6ba0178562231d6637d0c9e4afd9f61

Branch pushed to git repo; I updated commit sha1. New commits:

4e6bdacTrac #25253: pyflakes (remove unused import)

comment:5 Changed 2 years ago by git

  • Commit changed from 4e6bdacdb6ba0178562231d6637d0c9e4afd9f61 to b47e2722ac3c45888259f1118dbe1f4e7ba72f83

Branch pushed to git repo; I updated commit sha1. New commits:

b47e272Merge tag '8.7' into public/25253

comment:6 Changed 2 years ago by gh-BrentBaccala

  • Milestone changed from sage-8.2 to sage-8.8

comment:7 Changed 2 years ago by embray

  • Milestone changed from sage-8.8 to sage-8.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 21 months ago by embray

  • Milestone changed from sage-8.9 to sage-9.1

Ticket retargeted after milestone closed

comment:9 Changed 17 months ago by mkoeppe

  • Milestone changed from sage-9.1 to sage-9.2

comment:10 Changed 15 months ago by mkoeppe

  • Cc gh-mwageringel added

comment:11 Changed 15 months ago by chapoton

integer_types is no longer available, just use int

comment:12 Changed 13 months ago by git

  • Commit changed from b47e2722ac3c45888259f1118dbe1f4e7ba72f83 to 0054a2fd8a14d75dc9a24436f514c25bcacef1fc

Branch pushed to git repo; I updated commit sha1. New commits:

29b7ccaMerge tag '9.2.beta8' into #25253
0054a2f25253: remove integer_types

comment:13 Changed 13 months ago by gh-mwageringel

  • 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 13 months ago by gh-mwageringel

  • Status changed from needs_review to positive_review

comment:15 Changed 13 months ago by vbraun

  • Branch changed from public/25253 to 0054a2fd8a14d75dc9a24436f514c25bcacef1fc
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.