[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2021-10-11 Thread Vadym Stupakov
Vadym Stupakov added the comment: > Do we have any news about this? There is IBM effort to do this in container level, so that os.cpu_count() will return right result in container https://www.phoronix.com/scan.php?page=news_item=Linux-CPU-Namespace -- nosy: +RedE

[issue42580] ctypes.util.find_library("libc") fails

2021-02-16 Thread Vadym Stupakov
Vadym Stupakov added the comment: I mean, find_library relies on gcc linker, when you pass library name to the linker, it automatically ads "lib" prefix to the library so, when you pass "libc", linker ads "lib" so u have an error with "liblibc" name.

[issue42580] ctypes.util.find_library("libc") fails

2021-02-16 Thread Vadym Stupakov
Vadym Stupakov added the comment: > ctypes.util.find_library("libc") used to work in 3.8, not working in 3.9. As > I said before, ctypes.util.find_library("c") works in both 3.8 and 3.9. no, it doesn't work (and it shouldn't) neither in python 3.8 nor 3.7 Pyt

[issue42580] ctypes.util.find_library("libc") fails

2021-02-16 Thread Vadym Stupakov
Vadym Stupakov added the comment: So, can we close it? -- ___ Python tracker <https://bugs.python.org/issue42580> ___ ___ Python-bugs-list mailing list Unsub

[issue42580] ctypes.util.find_library("libc") fails

2021-02-16 Thread Vadym Stupakov
Vadym Stupakov added the comment: Note, that adding "lib" prefix to any library is wrong, that's why it returns "None" or raises the exception. And it works fine when you call find_library("c") I guess the issue, that was reported here, is about raising and e