[issue37704] Remove Tools/scripts/h2py.py

STINNER Victor report at bugs.python.org
Tue Jul 30 10:07:46 EDT 2019


STINNER Victor <vstinner at redhat.com> added the comment:

Lib/plat-*/ directories has been removed in Python 3.6 by:

commit 20737cc91e823b6b17fff16574283c034c99d641
Author: Zachary Ware <zachary.ware at gmail.com>
Date:   Thu Sep 8 11:38:46 2016 -0700

    Issue #28027: Remove Lib/plat-* files

> 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

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37704>
_______________________________________


More information about the Python-bugs-list mailing list