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 dutradda
Recipients asvetlov, chris.jerdonek, dutradda, ods, yselivanov
Date 2020-10-26.20:28:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMJwLaH-36aco-V3i-H8m77A9nZNZambUPPzRa_kLaomRwVopg@mail.gmail.com>
In-reply-to <1603663068.93.0.570983446226.issue42140@roundup.psfhosted.org>
Content
> Are you suggesting this is a bug, or is it just a suggested code cleanup?

It is a suggested code cleanup.

My point is that the code creates two sets based on the Sequence `fs`.
I think it is better if the code creates the set just one time, instead of
two times.

Em dom., 25 de out. de 2020 às 18:57, Chris Jerdonek <report@bugs.python.org>
escreveu:

>
> Chris Jerdonek <chris.jerdonek@gmail.com> added the comment:
>
> Are you suggesting this is a bug, or is it just a suggested code cleanup?
> I ask because the docs suggest that a set should be passed:
> https://docs.python.org/3/library/asyncio-task.html#asyncio.wait
>
> And the docstring says it should be a sequence:
>
> https://github.com/python/cpython/blob/d1a0a960ee493262fb95a0f5b795b5b6d75cecb8/Lib/asyncio/tasks.py#L373-L376
>
> So while code cleanup is okay, I'm not sure support for general iterator
> arguments can / should be guaranteed.
>
> ----------
> nosy: +chris.jerdonek
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue42140>
> _______________________________________
>
History
Date User Action Args
2020-10-26 20:28:26dutraddasetrecipients: + dutradda, ods, asvetlov, chris.jerdonek, yselivanov
2020-10-26 20:28:26dutraddalinkissue42140 messages
2020-10-26 20:28:26dutraddacreate