Created originally on Bitbucket by pganssle (Paul G)
Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.
The CPython CAPI capsule includes fromtimestamp constructors, but the current cpyext implementation does not, which causes some problems for people writing C extensions that use the capsule directly rather than the C macros.
Closes bitbucket issue #2986 (closed): https://bitbucket.org/pypy/pypy/issues/2986
I believe this only solves the issue for Python 2.7. I will port these changes to the PyPy 3.6 branch a bit later.
I can add a news / changelog entry before this is merged if need be.