arrrrrrgggghhh sorry ;-) I actually stared at it for some time before posting to make sure that it's not a typo but did not see it
> On 6. Sep 2022, at 09:19, dmo...@deductivepress.ca > <dmor...@deductivepress.ca> wrote: > > You misspelled "multiplicative": you wrote "tl" instead of "lt". It works if > you spell it correctly: > sage: Zmod(257)(4).multiplicative_order() > 8 > On Tuesday, September 6, 2022 at 1:03:14 AM UTC-6 dantetante wrote: > Hello list, > > could this (see below) be a bug? > When I try Zmod(17)(4).multiplicative_order(), I get 4 as expected. But not > with 257 as modulus: > > > sage: R=Zmod(257) > sage: R(4) > 4 > sage: R(4).multiplicative_order() > 8 > sage: Zmod(257)(4).mutliplicative_order() > --------------------------------------------------------------------------- > AttributeError Traceback (most recent call last) > <ipython-input-55-f15ea556676b> in <module> > ----> 1 Zmod(Integer(257))(Integer(4)).mutliplicative_order() > > /private/var/tmp/sage-9.6-current/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/structure/element.pyx > in sage.structure.element.Element.__getattr__ > (build/cythonized/sage/structure/element.c:4832)() > 492 AttributeError: 'LeftZeroSemigroup_with_category.element_class' object > has no attribute 'blah_blah' > 493 """ > --> 494 return self.getattr_from_category(name) > 495 > 496 cdef getattr_from_category(self, name): > > /private/var/tmp/sage-9.6-current/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/structure/element.pyx > in sage.structure.element.Element.getattr_from_category > (build/cythonized/sage/structure/element.c:4944)() > 505 else: > 506 cls = P._abstract_element_class > --> 507 return getattr_from_other_class(self, cls, name) > 508 > 509 def __dir__(self): > > /private/var/tmp/sage-9.6-current/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/cpython/getattr.pyx > in sage.cpython.getattr.getattr_from_other_class > (build/cythonized/sage/cpython/getattr.c:2703)() > 359 dummy_error_message.cls = type(self) > 360 dummy_error_message.name <http://dummy_error_message.name/> = name > --> 361 raise AttributeError(dummy_error_message) > 362 attribute = <object>attr > 363 # Check for a descriptor (__get__ in Python) > > AttributeError: 'sage.rings.finite_rings.integer_mod.IntegerMod_int' object > has no attribute 'mutliplicative_order' > sage: > > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com > <mailto:sage-devel+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/5f840dae-7307-41fe-8ceb-ab2e906cd581n%40googlegroups.com > > <https://groups.google.com/d/msgid/sage-devel/5f840dae-7307-41fe-8ceb-ab2e906cd581n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/65911F39-5CE7-422C-81EE-DDEEA81118AF%40me.com.