Created attachment 46332 [details] [review]
py2cairo patch for supporting recording surfaces
PyCairo does not currently support recording surfaces. The attached patch adds support for py2cairo. If wanted, I can adjust the patch for Python3 as well, but it should be trivial.
Thanks for the patch.
A modified version of the patch has been applied to the git repository for Python 2 cairo (the changes for Python 3 cairo will be applied later).