This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Zach Riggle
Recipients Zach Riggle, gregory.p.smith, ned.deily, python-dev, vstinner
Date 2017-01-23.17:21:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485192114.83.0.660129914526.issue29335@psf.upfronthosting.co.za>
In-reply-to
Content
Neat, though that's not in the standard library.

The current logic for getting a handle to libc could also be simplified via ctypes.util.find_library (https://docs.python.org/3/library/ctypes.html#finding-shared-libraries).

Darwin:

    >>> import ctypes.util
    >>> ctypes.util.find_library('c')
    '/usr/lib/libc.dylib'
    
Linux:

    >>> import ctypes.util
    >>> ctypes.util.find_library('c')
    'libc.so.6'
History
Date User Action Args
2017-01-23 17:21:54Zach Rigglesetrecipients: + Zach Riggle, gregory.p.smith, vstinner, ned.deily, python-dev
2017-01-23 17:21:54Zach Rigglesetmessageid: <1485192114.83.0.660129914526.issue29335@psf.upfronthosting.co.za>
2017-01-23 17:21:54Zach Rigglelinkissue29335 messages
2017-01-23 17:21:54Zach Rigglecreate