On Fri, Aug 18, 2023 at 12:02 PM Jan Groenewald
<jan.groenew...@gmail.com> wrote:
>
> Hi
>
> I am not sure that is a bug...
>
> sage: K = CyclotomicField(32)
> sage: type(Integer)
> <class 'sage.misc.inherit_comparison.InheritComparisonMetaclass'>
> sage: from sympy import *
> sage: type(Integer)
> <class 'sympy.core.assumptions.ManagedProperties'>
> sage: K = CyclotomicField(int(32))

I don't think it's a bug - "Integer" is not a reserved Python word,
and thus any Python module can play fast and loose with it.


> sage:
>
> Regards,
> Jan
>
>
> On Fri, 18 Aug 2023 at 10:33, Александр Каренин (alexKar) 
> <tremeloesa...@gmail.com> wrote:
>>
>> As reported in 
>> https://ask.sagemath.org/question/72642/does-sympy-break-cyclotomicfield/ , 
>> importing sympy as
>>     from sympy import *
>> and then trying to construct a CyclotomicField as
>>    K = CyclotomicField(32)
>> results in an error:
>>    TypeError: unable to coerce <class 'sympy.core.numbers.Integer'> to an 
>> integer
>> This seems to be a bug.  The NumberField class does not seem to be affected. 
>> Importing sympy as:
>>    import sympy
>> seems to work for me. Specs: Ubuntu 22.04. Checked on Sage 9.8 and 10.0.
>>
>> Knd regards,
>> Alexander
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "sage-support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-support+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/ed0a8b32-f9e4-415e-ad95-41796a51b4dfn%40googlegroups.com.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/CAAg%3Dp_3UF7RjMb7nQdsZg%2Bqd%2BsktREEK%2Ba67pnHxsMUSgQz5Uw%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq37G5bvPsihRJrTg0uzgQbOy-u03s3Je-Hm7b%2B7YP1%3DMw%40mail.gmail.com.

Reply via email to