]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40280: select: Use NULL for empty fdset (GH-31865)
authorChristian Heimes <christian@python.org>
Mon, 14 Mar 2022 13:40:28 +0000 (15:40 +0200)
committerGitHub <noreply@github.com>
Mon, 14 Mar 2022 13:40:28 +0000 (14:40 +0100)
commitf00ced8396f2d7683e58b9d5ebbf5797992bf477
treee1c82c567bab35043f594f54f756a0b0432ddd89
parent23abae621f579014eb29d5c6621f031c8a1a4057
bpo-40280: select: Use NULL for empty fdset (GH-31865)

wasm32-emscripten does not support exceptfds and requires NULL. Python
now passes NULL instead of a fdset pointer when the input list is empty.
This works fine on all platforms and might even be a tiny bit faster.
Lib/test/test_select.py
Misc/NEWS.d/next/Library/2022-03-14-09-26-42.bpo-40280.2-k8TV.rst [new file with mode: 0644]
Modules/selectmodule.c