@@ -379,10 +379,10 @@ cdef class flint_mpoly_context(flint_elem):
379379 nametup = ctx.names()
380380 )
381381
382- def any_as_scalar (self , other ):
382+ def _any_as_scalar (self , other ):
383383 raise NotImplementedError (" abstract method" )
384384
385- def scalar_as_mpoly (self , other ):
385+ def _scalar_as_mpoly (self , other ):
386386 raise NotImplementedError (" abstract method" )
387387
388388 def compatible_context_check (self , other ):
@@ -505,7 +505,7 @@ cdef class flint_mpoly(flint_elem):
505505 self .context().compatible_context_check(other.context())
506506 return self ._add_mpoly_(other)
507507
508- other = self .context().any_as_scalar (other)
508+ other = self .context()._any_as_scalar (other)
509509 if other is NotImplemented :
510510 return NotImplemented
511511
@@ -516,7 +516,7 @@ cdef class flint_mpoly(flint_elem):
516516 self .context().compatible_context_check(other.context())
517517 return self ._add_mpoly_(other)
518518
519- other = self .context().any_as_scalar (other)
519+ other = self .context()._any_as_scalar (other)
520520 if other is NotImplemented :
521521 return NotImplemented
522522
@@ -527,7 +527,7 @@ cdef class flint_mpoly(flint_elem):
527527 self .context().compatible_context_check(other.context())
528528 return self ._sub_mpoly_(other)
529529
530- other = self .context().any_as_scalar (other)
530+ other = self .context()._any_as_scalar (other)
531531 if other is NotImplemented :
532532 return NotImplemented
533533
@@ -538,7 +538,7 @@ cdef class flint_mpoly(flint_elem):
538538 self .context().compatible_context_check(other.context())
539539 return self ._rsub_mpoly_(other)
540540
541- other = self .context().any_as_scalar (other)
541+ other = self .context()._any_as_scalar (other)
542542 if other is NotImplemented :
543543 return NotImplemented
544544
@@ -549,7 +549,7 @@ cdef class flint_mpoly(flint_elem):
549549 self .context().compatible_context_check(other.context())
550550 return self ._mul_mpoly_(other)
551551
552- other = self .context().any_as_scalar (other)
552+ other = self .context()._any_as_scalar (other)
553553 if other is NotImplemented :
554554 return NotImplemented
555555
@@ -560,7 +560,7 @@ cdef class flint_mpoly(flint_elem):
560560 self .context().compatible_context_check(other.context())
561561 return self ._mul_mpoly_(other)
562562
563- other = self .context().any_as_scalar (other)
563+ other = self .context()._any_as_scalar (other)
564564 if other is NotImplemented :
565565 return NotImplemented
566566
@@ -586,20 +586,20 @@ cdef class flint_mpoly(flint_elem):
586586 self ._division_check(other)
587587 return self ._divmod_mpoly_(other)
588588
589- other = self .context().any_as_scalar (other)
589+ other = self .context()._any_as_scalar (other)
590590 if other is NotImplemented :
591591 return NotImplemented
592592
593- other = self .context().scalar_as_mpoly (other)
593+ other = self .context()._scalar_as_mpoly (other)
594594 self ._division_check(other)
595595 return self ._divmod_mpoly_(other)
596596
597597 def __rdivmod__ (self , other ):
598- other = self .context().any_as_scalar (other)
598+ other = self .context()._any_as_scalar (other)
599599 if other is NotImplemented :
600600 return NotImplemented
601601
602- other = self .context().scalar_as_mpoly (other)
602+ other = self .context()._scalar_as_mpoly (other)
603603 other._division_check(self )
604604 return self ._rdivmod_mpoly_(other)
605605
@@ -609,7 +609,7 @@ cdef class flint_mpoly(flint_elem):
609609 self ._division_check(other)
610610 return self ._truediv_mpoly_(other)
611611
612- other = self .context().any_as_scalar (other)
612+ other = self .context()._any_as_scalar (other)
613613 if other is NotImplemented :
614614 return NotImplemented
615615
@@ -618,15 +618,15 @@ cdef class flint_mpoly(flint_elem):
618618 if res is not NotImplemented :
619619 return res
620620
621- other = self .context().scalar_as_mpoly (other)
621+ other = self .context()._scalar_as_mpoly (other)
622622 return self ._truediv_mpoly_(other)
623623
624624 def __rtruediv__ (self , other ):
625- other = self .context().any_as_scalar (other)
625+ other = self .context()._any_as_scalar (other)
626626 if other is NotImplemented :
627627 return NotImplemented
628628
629- other = self .context().scalar_as_mpoly (other)
629+ other = self .context()._scalar_as_mpoly (other)
630630 other._division_check(self )
631631 return self ._rtruediv_mpoly_(other)
632632
@@ -636,20 +636,20 @@ cdef class flint_mpoly(flint_elem):
636636 self ._division_check(other)
637637 return self ._floordiv_mpoly_(other)
638638
639- other = self .context().any_as_scalar (other)
639+ other = self .context()._any_as_scalar (other)
640640 if other is NotImplemented :
641641 return NotImplemented
642642
643- other = self .context().scalar_as_mpoly (other)
643+ other = self .context()._scalar_as_mpoly (other)
644644 self ._division_check(other)
645645 return self ._floordiv_mpoly_(other)
646646
647647 def __rfloordiv__ (self , other ):
648- other = self .context().any_as_scalar (other)
648+ other = self .context()._any_as_scalar (other)
649649 if other is NotImplemented :
650650 return NotImplemented
651651
652- other = self .context().scalar_as_mpoly (other)
652+ other = self .context()._scalar_as_mpoly (other)
653653 other._division_check(self )
654654 return self ._rfloordiv_mpoly_(other)
655655
@@ -659,20 +659,20 @@ cdef class flint_mpoly(flint_elem):
659659 self ._division_check(other)
660660 return self ._mod_mpoly_(other)
661661
662- other = self .context().any_as_scalar (other)
662+ other = self .context()._any_as_scalar (other)
663663 if other is NotImplemented :
664664 return NotImplemented
665665
666- other = self .context().scalar_as_mpoly (other)
666+ other = self .context()._scalar_as_mpoly (other)
667667 self ._division_check(other)
668668 return self ._mod_mpoly_(other)
669669
670670 def __rmod__ (self , other ):
671- other = self .context().any_as_scalar (other)
671+ other = self .context()._any_as_scalar (other)
672672 if other is NotImplemented :
673673 return NotImplemented
674674
675- other = self .context().scalar_as_mpoly (other)
675+ other = self .context()._scalar_as_mpoly (other)
676676 other._division_check(self )
677677 return self ._rmod_mpoly_(other)
678678
@@ -695,7 +695,7 @@ cdef class flint_mpoly(flint_elem):
695695 self ._iadd_mpoly_(other)
696696 return
697697
698- other_scalar = self .context().any_as_scalar (other)
698+ other_scalar = self .context()._any_as_scalar (other)
699699 if other_scalar is NotImplemented :
700700 raise NotImplementedError (f" cannot add {type(self)} and {type(other)}" )
701701
@@ -720,7 +720,7 @@ cdef class flint_mpoly(flint_elem):
720720 self ._isub_mpoly_(other)
721721 return
722722
723- other_scalar = self .context().any_as_scalar (other)
723+ other_scalar = self .context()._any_as_scalar (other)
724724 if other_scalar is NotImplemented :
725725 raise NotImplementedError (f" cannot subtract {type(self)} and {type(other)}" )
726726
@@ -745,7 +745,7 @@ cdef class flint_mpoly(flint_elem):
745745 self ._imul_mpoly_(other)
746746 return
747747
748- other_scalar = self .context().any_as_scalar (other)
748+ other_scalar = self .context()._any_as_scalar (other)
749749 if other_scalar is NotImplemented :
750750 raise NotImplementedError (f" cannot multiply {type(self)} and {type(other)}" )
751751
0 commit comments