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 <>
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/", line 1266, in get_work_item
  File "jupiter/", line 166, in acquireWork
  File "jupiter/", line 241, in _acquire_multiple_async
  File "jupiter/", line 336, in _wait_for_responses
  File "/usr/local/fbcode/gcc-5-glibc-2.23/lib/python3.6/concurrent/futures/", 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.
Date User Action Args
2017-09-29 19:49:30lukasz.langasetrecipients: + lukasz.langa, pitrou, ned.deily, grzgrzgrz3
2017-09-29 19:49:30lukasz.langasetmessageid: <>
2017-09-29 19:49:30lukasz.langalinkissue31641 messages
2017-09-29 19:49:30lukasz.langacreate