diff options
| author | Mike Wang <mikewang000000@gmail.com> | 2025-09-21 01:44:59 +0800 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-09-23 14:06:37 +1000 |
| commit | cf097932a2a7ffd03958a8a14d9c87bd477ac5c3 (patch) | |
| tree | f9fe1663db78cc8a797e69910392edf87d8fbaf1 /tests/cmdline/cmd_module_atexit_exc.py | |
| parent | a277fe4a36f09558e57c89b7e365e34af14b1cf3 (diff) | |
unix/modsocket: Set file descriptor to -1 on close.
After s.close(), s.fileno() now returns -1, matching CPython behavior.
Some code relies on this compatibility, as it allows checking whether
a socket is closed by testing its fileno() value. This change ensures
better interoperability with existing Python code and libraries.
Signed-off-by: Mike Wang <mikewang000000@gmail.com>
Diffstat (limited to 'tests/cmdline/cmd_module_atexit_exc.py')
0 files changed, 0 insertions, 0 deletions
