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

2021-05-03 Thread 'Galen Dorpalen-Barry' via sage-devel
Thank you so much! I was using Sage 8.3.beta3. After reading your helpful comments, I went to update my Sage installation to version 9.2. That didn't solve the problem, but changing the file type from .py to .sage did! Best, Galen On Wed, Apr 28, 2021 at 12:01 AM David Roe wrote: > Are you wr

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