Hello, I am not sure whether this can be called a bug, but I've noticed a weirdness while working with Sage (5.0).
For any positive integer n, I can define a ring R(n) = PolynomialRing(QQ, polynames(n)), where polynames(n) is the list ['x1','x2',...,'xn']. This ring is just the polynomial ring in n indeterminates over QQ. Now I can evaluate an element f of R(n) at a list xs of n rationals, just by writing f(xs). Unless n == 1. In this case, writing f(xs) gives me this: TypeError: unsupported operand parent(s) for '+': '<type 'list'>' and 'Rational Field' I am wondering whether this is intended behaviour or a bug. I imagine it being a consequence of univariate and multivariate polynomial rings being implemented differently, and it is easy to work around in most cases, but I imagine it being a source of annoying bugs... Could there be any conflict if one is allowed to apply univariate polynomials to a one-element list? Best regards, Darij -- 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