On 07.09.2018 11:46, Victor Stinner wrote:
I'm trying to remove functions from the C API which allow to do things which are not possible at the Python level: https://pythoncapi.readthedocs.io/bad_api.html#no-public-c-functions- if-it-can-t-be-done-in-python
Sorry – no way. Cython can definitely make very good use of those internals, shortcuts, and what not. If you want them removed, then please replace them with something equivalent that doesn't reduce the performance.
Just to concur: This argument is not restricted to Cython :-)
Also I don't see the point, really. CPython is Cpython and Pypy is Pypy (and Py is Py). I dive into C for 3 reasons: 1) Performance, 2) Wrapping of C libraries and 3) doing stuff I can't in python (it's called "extension" after all). And I just use the python implementation which is suitable for my needs. CPython suits very well most of the time.
This discussion might also be tackled from the other side: Maybe some things should be made available in python instead.
I have tried using ErrorDocument 401, but doesn't work. ^^^^^^^^^^^^^ Oh dear. What does it do - lounge around on the couch all day drinking beer and watching TV? -- "Kash" und Alan J. Flavell in ciwsu