smichr/sympy — comment on commit 649fa46a218f4422b6f8ea87202b0e6fae976d7c
File: sympy/core/power.py line 870
By smichr:

a doctest was added here, too:

```python

"""Return ``(R**i, (b/R)**i)`` where ``R`` is the Rational primitive
that can be extracted from the base ``b`` of self if the exponent of
self, ``i`` is an Integer, else return ``(1, self)``.

Example:

>>> from sympy.abc import x, y
>>> ((2*x + 2)**2).primitive()
(4, (x + 1)**2)
>>> ((2 + 2*x)**y).primitive()
(1, (2*x + 2)**y)
"""

```