title: Python polynomial pow
body: <p>I have my own defined <strong>Polynomial class</strong>, which is in form of list of coefficients.<br>
  Something like </p>
  
  <blockquote>
    <p>axˆ2 + bx + c is equals to [c, b, a]<br>
        (for ax + b == [b, a]<br>
        similarly, for axˆ3 + bxˆ2 + cx + d == [d, c, b, a])  </p>
  </blockquote>
  
  <p>and the <strong>len()</strong> of list depends of the index of function.<br><br>
  I want to define a custom __pow__ function but I really have no idea how to implement it.</p>