This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: select.select() can return lists with identical id()'s
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, mrmakent
Priority: normal Keywords:

Created on 2010-04-06 21:19 by mrmakent, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg102496 - (view) Author: Mike Kent (mrmakent) Date: 2010-04-06 21:19
If select.select() returns two or more empty lists, these empty lists will all refer to the same list; that is, they will have identical id()'s.  If you then have reason to alter one of the returned empty lists, you are altering all of the returned empty lists.  This can result in some significant debugging time spent, and curse words uttered.

I encountered this in Python 2.5.4, but have not yet verified it on a more recent version.  Searching through the Issue Tracker showed nothing similar.
msg102498 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2010-04-06 21:50
Fixed in r79867.
History
Date User Action Args
2022-04-11 14:56:59adminsetgithub: 52576
2010-04-06 21:50:38benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg102498

resolution: fixed
2010-04-06 21:20:05mrmakentsettype: behavior
2010-04-06 21:19:37mrmakentcreate