[issue18432] sched modules queue property should return a list, not an iterator

2013-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for explanation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18432 ___ ___ Python-bugs-list

[issue18432] sched modules queue property should return a list, not an iterator

2013-07-13 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18432 ___

[issue18432] sched modules queue property should return a list, not an iterator

2013-07-13 Thread Roundup Robot
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

[issue18432] sched modules queue property should return a list, not an iterator

2013-07-12 Thread Raymond Hettinger
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

[issue18432] sched modules queue property should return a list, not an iterator

2013-07-12 Thread Serhiy Storchaka
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

[issue18432] sched modules queue property should return a list, not an iterator

2013-07-12 Thread Raymond Hettinger
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