On Jul 7, 2:51 pm, Simon King <simon.k...@nuigalway.ie> wrote:
> Hi Volker!
>
> On 7 Jul., 20:30, Volker Braun <vbraun.n...@gmail.com> wrote:
>
> > sage: FF = FiniteField(7)
> > sage: P.<x> = PolynomialRing(FiniteField(7))
> > sage: x+1
>
> Apparently the problem is in the _element_constructor_:
>
> sage: P(1)
> ...
> /home/king/SAGE/sage-4.4.2/local/lib/python2.6/site-packages/sage/
> rings/polynomial/polynomial_ring.pyc in _element_constructor_(self, x,
> check, is_gen, construct, **kwds)
>     281             elif P == self.base_ring():
>     282                 return C(self, [x], check=True, is_gen=False,
> --> 283                         construct=construct)
>     284             elif self.base_ring().has_coerce_map_from(P):
>     285                 return C(self, [x], check=True, is_gen=False,
> ...
>
> Or is it?
> sage: P._element_constructor_(1)
> _element_constructor_(Finite Field of size 7, 0)
> 1
>
> Strange.
>
> Best regards,
> Simon

So - what's going on in this example? _element_constructor_ is
improperly bound so that a wrong version gets called?..

Andrey

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to