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.

Author taleinat
Recipients brandtbucher, corona10, docs@python, jstasiak, serhiy.storchaka, taleinat, vstinner
Date 2020-04-16.21:51:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587073877.63.0.595773353199.issue38580@roundup.psfhosted.org>
In-reply-to
Content
It seems that select() does indeed support arbitrary iterables through the use of PySequence_Fast().

The commit where this was introduced, by Brett Cannon from 2003 (62dba4c2775adfb5a5a97ca012a3ab00c4e28597), doesn't seems to have intended this though: "select.select() now accepts a sequence (as defined by PySequence_Fast()) for its first three arguments."

However, regardless of whether this is intentional, it appears that this has been this way for a very long time. So it seems to me that we should document this behavior, as suggested here, since any change to this would be an unacceptable backwards-incompatibility.
History
Date User Action Args
2020-04-16 21:51:17taleinatsetrecipients: + taleinat, vstinner, docs@python, serhiy.storchaka, jstasiak, corona10, brandtbucher
2020-04-16 21:51:17taleinatsetmessageid: <1587073877.63.0.595773353199.issue38580@roundup.psfhosted.org>
2020-04-16 21:51:17taleinatlinkissue38580 messages
2020-04-16 21:51:17taleinatcreate