Did SymPy change the syntax?

You need to use op.as_poly instead of op[:as_poly]. Same for op.x[:gens], op[:length], etc.

1 Like