@classmethod
    def _get_roots(cls, method, poly, radicals):
        if not poly.is_univariate:
            raise PolynomialError("only univariate polynomials are allowed")

        coeff, poly = cls._preprocess_roots(poly)
        roots = []

        for root in getattr(cls, method)(poly):
            roots.append(coeff*cls._postprocess_root(root, radicals))

        return roots
Acquire the I/O thread lock.
dataset/ETHPy150Open sympy/sympy/sympy/polys/rootoftools.py/ComplexRootOf._get_roots--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/logging/__init__.py/Handler.acquire