summaryrefslogtreecommitdiff
path: root/docs/examples/userguide/language_basics/function_pointer_struct.pyx
diff options
context:
space:
mode:
authorda-woods <dw-git@d-woods.co.uk>2022-10-11 08:22:40 +0100
committerGitHub <noreply@github.com>2022-10-11 08:22:40 +0100
commit0976aa3e2dd1ad96a3ce9be5521b951f7d5e4390 (patch)
treee1016b73e0254a8de0cf462fc1404e56a1489de6 /docs/examples/userguide/language_basics/function_pointer_struct.pyx
parent1741bac96ce49d7e31b2434dd798fa38dad660dd (diff)
downloadcython-0976aa3e2dd1ad96a3ce9be5521b951f7d5e4390.tar.gz
Remove "from x cimport class C" (#4904)
(and "struct S"/"union U") This appears to be an old Pyrex feature introduced in https://github.com/cython/cython/commit/9bac9c2e014ed63c2ac435e9b431fae124fba668 to provide a way of "forward cimporting" a class. I originally tried to make a test for it, but couldn't actually come up with a useful way of using it in the intended way, where the name would be unavailable initially but avaialble later. It looks to be completely untested, and responsible for some missing coverage in Nodes.py (https://github.com/cython/cython/issues/4163). The large section containing ``` if kind == 'struct' or kind == 'union': # 8479 ↛ 8480 ``` I propose to fix the missing coverage by killing off the feature. The only people I could find using this syntax were H5Py, who look to have removed their sole use of it 3 years ago https://github.com/h5py/h5py/commit/8d2498c7f5e3fec884ff56e9aca905c325d82484 Therefore it seems a good candidate to go in Cython 3
Diffstat (limited to 'docs/examples/userguide/language_basics/function_pointer_struct.pyx')
0 files changed, 0 insertions, 0 deletions