Python 2 standard library had platform specific modules like CDROM which were generated by Tools/scripts/h2py.py. These modules were removed, but h2py.py is still around.
There are now way better ways to expose C APIs in Python like cffi.
Python 2 standard library had platform specific modules like CDROM which were generated by Tools/scripts/h2py.py. These modules were removed, but h2py.py is still around.
Example of Python 2.7:
$ head -n1 Lib/plat-linux2/IN.py
# Generated by h2py from /usr/include/netinet/in.h
...
$ tail -n1 Lib/plat-linux2/regen
...
h2py -i '(u_long)' /usr/include/sys/types.h /usr/include/netinet/in.h /usr/include/dlfcn.h
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: