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.

Title: sched modules queue property should return a list, not an iterator
Type: behavior Stage: patch review
Components: Library (Lib) Versions: Python 3.3, Python 3.4
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: giampaolo.rodola, python-dev, rhettinger, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2013-07-12 07:31 by rhettinger, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit
sched.diff rhettinger, 2013-07-12 07:31 Fix sched.queue review
Messages (5)
msg192927 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2013-07-12 07:31
In Python 2, the queue attribute was a list and it is still documented that way in Python 3:

This appears to be a mistake made during the 2-to-3 conversion.
msg192932 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-07-12 08:00
Perhaps it will be better document it as an iterator? In any case we can call list() to get a list.
msg192986 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2013-07-13 01:01
It's pretty weird to use a property for an iterator.  It we really wanted iteration, the appropriate method would be __iter__.
msg193027 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-07-14 05:49
New changeset 359002d4370d by Raymond Hettinger in branch '3.3':
Issue #18432:  Fix unintended API change in the sched module
msg193040 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-07-14 08:42
Thank you for explanation.
Date User Action Args
2022-04-11 14:57:47adminsetgithub: 62632
2013-07-14 08:42:40serhiy.storchakasetmessages: + msg193040
2013-07-14 05:49:59rhettingersetstatus: open -> closed
resolution: fixed
2013-07-14 05:49:25python-devsetnosy: + python-dev
messages: + msg193027
2013-07-13 01:01:47rhettingersetmessages: + msg192986
2013-07-12 08:00:31serhiy.storchakasetnosy: + serhiy.storchaka, giampaolo.rodola
messages: + msg192932
2013-07-12 07:31:21rhettingercreate