-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C optimizations #60
Comments
I made a branch for this, unfortunately a lot of tests fail with: SystemError: Bad call flags in PyCFunction_Call. METH_OLDARGS is no longer supported! when the optimizations are actually loaded |
@jinty the bug you are seeing is described here. The following patch fixes it:
BTW, I think we should be using absolute, rather than relative, imports. |
Agree on having absolute imports. |
- The bare import of '_zope_c_optimizations' prevented them from being used. - After enabling them via absolute imports, they would fail due to http://bugs.python.org/issue15657. Fixes #60.
@tseaver thanks for carrying this on. I've deleted my branch. I'm curious, why the preference for absolute imports? On Tue, Nov 15, 2016 at 08:54:30AM -0800, Tres Seaver wrote:
Brian Sutherland |
@tseaver can we have a release with this solution ? |
4.3.3 (2016-12-13) ------------------ - Correct typos and ReST formatting errors in documentation. - Add API documentation for the adapter registry. - Ensure that the ``LICENSE.txt`` file is included in built wheels. - Fix C optimizations broken on Py3k. See the Python bug at: http://bugs.python.org/issue15657 (zopefoundation/zope.interface#60)
…rsion 4.3.3 Changes ======= 4.3.3 (2016-12-13) ------------------ - Correct typos and ReST formatting errors in documentation. - Add API documentation for the adapter registry. - Ensure that the ``LICENSE.txt`` file is included in built wheels. - Fix C optimizations broken on Py3k. See the Python bug at: http://bugs.python.org/issue15657 (zopefoundation/zope.interface#60)
…rsion 4.3.3 Changes ======= 4.3.3 (2016-12-13) ------------------ - Correct typos and ReST formatting errors in documentation. - Add API documentation for the adapter registry. - Ensure that the ``LICENSE.txt`` file is included in built wheels. - Fix C optimizations broken on Py3k. See the Python bug at: http://bugs.python.org/issue15657 (zopefoundation/zope.interface#60)
…rsion 4.3.3 Changes ======= 4.3.3 (2016-12-13) ------------------ - Correct typos and ReST formatting errors in documentation. - Add API documentation for the adapter registry. - Ensure that the ``LICENSE.txt`` file is included in built wheels. - Fix C optimizations broken on Py3k. See the Python bug at: http://bugs.python.org/issue15657 (zopefoundation/zope.interface#60)
…rsion 4.3.3 Changes ======= 4.3.3 (2016-12-13) ------------------ - Correct typos and ReST formatting errors in documentation. - Add API documentation for the adapter registry. - Ensure that the ``LICENSE.txt`` file is included in built wheels. - Fix C optimizations broken on Py3k. See the Python bug at: http://bugs.python.org/issue15657 (zopefoundation/zope.interface#60)
…rsion 4.3.3 Changes ======= 4.3.3 (2016-12-13) ------------------ - Correct typos and ReST formatting errors in documentation. - Add API documentation for the adapter registry. - Ensure that the ``LICENSE.txt`` file is included in built wheels. - Fix C optimizations broken on Py3k. See the Python bug at: http://bugs.python.org/issue15657 (zopefoundation/zope.interface#60)
When we are loading zope.interface on our projects the coptimizations are not loaded saying:
ImportError: No module named '_zope_interface_coptimizations'
If we change the import to zope.interface._zope_interface_coptimizations it works.
Python 3.5
The text was updated successfully, but these errors were encountered: