Re: [sage-devel] Attribute error when using [0..n] in a function

2021-04-27 Thread David Roe
Are you writing this function in a .sage file or a .py file? The latter won't work, since it doesn't preparse the input. David On Wed, Apr 28, 2021 at 12:13 AM 'Justin C. Walker' via sage-devel < sage-devel@googlegroups.com> wrote: > A few details would help: > - what version of sage? > - what O

Re: [sage-devel] Attribute error when using [0..n] in a function

2021-04-27 Thread 'Justin C. Walker' via sage-devel
A few details would help: - what version of sage? - what OS/version? - build from source/download from sagemath.org/use package manager for some system? FWIW, I tried your example on sage 9.3.rc4, with no complaints (macOS 10.15.7). Justin > On Apr 27, 2021, at 19:48, 'Galen Dorpalen-Barry' via

[sage-devel] Attribute error when using [0..n] in a function

2021-04-27 Thread 'Galen Dorpalen-Barry' via sage-devel
Hello Sage-Devel, For each n, I want to create a list of numbers [0,..., binomial(n,2)-1]. When I use the "[0...3]" or "[0..5]" (or similar) in the terminal, everything is fine. When I put any of those into a function, I get an attribute error. For example, I can make the function def error_ma

Re: [sage-devel] sage-9.3.rc4: optional package gap_packages fails to build (error with libsemigroup)

2021-04-27 Thread Dima Pasechnik
On Tue, Apr 27, 2021 at 8:29 AM Vincent Delecroix <20100.delecr...@gmail.com> wrote: > Installing gap_packages with "sage -i gap_packages" ends up with a > compilation failure of libsemigroup (I am using g++ 10.2.0). See > the attached config and log. the compilation failure is in GAP package semi