Serhiy Storchaka added the comment:
Thank you for explanation.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18432
___
___
Python-bugs-list
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18432
___
Roundup Robot added the comment:
New changeset 359002d4370d by Raymond Hettinger in branch '3.3':
Issue #18432: Fix unintended API change in the sched module
http://hg.python.org/cpython/rev/359002d4370d
--
nosy: +python-dev
___
Python tracker
New submission from Raymond Hettinger:
In Python 2, the queue attribute was a list and it is still documented that way
in Python 3: http://docs.python.org/3/library/sched.html#sched.scheduler.queue
This appears to be a mistake made during the 2-to-3 conversion.
--
components: Library
Serhiy Storchaka added the comment:
Perhaps it will be better document it as an iterator? In any case we can call
list() to get a list.
--
nosy: +giampaolo.rodola, serhiy.storchaka
___
Python tracker rep...@bugs.python.org
Raymond Hettinger added the comment:
It's pretty weird to use a property for an iterator. It we really wanted
iteration, the appropriate method would be __iter__.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18432