Skip to content

selectors.DefaultSelector.select '_fd_to_key' attribut error #161451

Closed

Description

@Trigan2025

Bug report

# Python 3.14.4 (main, Aug 20 2026, 10:41:58) [GCC 15.2.0] on linux
>>> from selectors import DefaultSelector as selector
>>> selector.select(-1)
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
    selector.select(-1)
    ~~~~~~~~~~~~~~~^^^^
  File "/usr/lib/python3.14/selectors.py", line 448, in select
    max_ev = len(self._fd_to_key) or 1
                 ^^^^^^^^^^^^^^^
AttributeError: 'int' object has no attribute '_fd_to_key'

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Activity

  1. Trigan2025 commented on Nov 5, 2026

    @Trigan2025
    Author

    Sorry, I think I just understand my issue. How to to delete it ?

  2. Trigan2025 commented on Nov 5, 2026

    @Trigan2025
    Author

    Well, I will close it least.
    My approach to it was wrong, it was supposed to be :

    >>> import selectors
    >>> selector = selectors.DefaultSelector()
    >>> selector.select(-1)
    []

    There, no issue.
    Don’t hesitate to delete this stupid report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions