Here comes a trivial patch that does it.
Created attachment 8828 [details] [review] Bind cairo_image_surface_get_data
This is useful, by the way, when one is using an image surface to create a mask, by setting its format to A1, for example.
Pycairo already has a cairo_image_surface_get_data binding, it was added in version 1.2.6.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.