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 lukasz.langa
Recipients grzgrzgrz3, lukasz.langa, ned.deily, pitrou
Date 2017-09-29.19:49:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506714570.68.0.213398074469.issue31641@psf.upfronthosting.co.za>
In-reply-to
Content
bpo-27144 introduced a regression for `as_completed()`: it used to accept arbitrary iterables but now requires sequences, otherwise raising an exception like:


Traceback (most recent call last):
  File "sandcastle/worker/sandcastle_worker.py", line 1266, in get_work_item
  File "jupiter/jupiter_client.py", line 166, in acquireWork
  File "jupiter/jupiter_client.py", line 241, in _acquire_multiple_async
  File "jupiter/jupiter_client.py", line 336, in _wait_for_responses
  File "/usr/local/fbcode/gcc-5-glibc-2.23/lib/python3.6/concurrent/futures/_base.py", line 217, in as_completed
    total_futures = len(fs)
TypeError: object of type 'map' has no len()


Since `as_completed()` is a very popular function, we need to revert the behavior here.
History
Date User Action Args
2017-09-29 19:49:30lukasz.langasetrecipients: + lukasz.langa, pitrou, ned.deily, grzgrzgrz3
2017-09-29 19:49:30lukasz.langasetmessageid: <1506714570.68.0.213398074469.issue31641@psf.upfronthosting.co.za>
2017-09-29 19:49:30lukasz.langalinkissue31641 messages
2017-09-29 19:49:30lukasz.langacreate