Message286102
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' |
|
Date |
User |
Action |
Args |
2017-01-23 17:21:54 | Zach Riggle | set | recipients:
+ Zach Riggle, gregory.p.smith, vstinner, ned.deily, python-dev |
2017-01-23 17:21:54 | Zach Riggle | set | messageid: <1485192114.83.0.660129914526.issue29335@psf.upfronthosting.co.za> |
2017-01-23 17:21:54 | Zach Riggle | link | issue29335 messages |
2017-01-23 17:21:54 | Zach Riggle | create | |
|