Hi,

On 14 June 2011 11:05, smichr <[email protected]> wrote:

> Installing and attempting to load under 2.4 (XP) gives
>
>     poly = g.as_poly(*symbols, extension=True)
>                                        ^
>     SyntaxError: invalid syntax
>

This is invalid syntax in 2.4. This was introduced in 157c6240. You can
either change this to g.as_poly(*symbols, **{'extension': True}) or remove
*, because Poly supports generators passing both in star args and iterable
containers, e.g.:

In [1]: (x**2 + sqrt(2)*y).as_poly(x, y, extension=True)
Out[1]: Poly(x**2 + 2**(1/2)*y, x, y, domain='QQ<2**(1/2)>')

In [2]: (x**2 + sqrt(2)*y).as_poly((x, y), extension=True)
Out[2]: Poly(x**2 + 2**(1/2)*y, x, y, domain='QQ<2**(1/2)>')

>  --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/sympy/-/HPs0ZzkGUXIJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.
>

Mateusz

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to