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 ys19991
Recipients asvetlov, ys19991, yselivanov
Date 2020-07-08.14:25:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594218335.75.0.478641917124.issue41241@roundup.psfhosted.org>
In-reply-to
Content
Hello!

When using 'if syntax', casting condition to bool type is unnecessary. Rather, it only occurs overhead.

https://github.com/python/cpython/blob/b26a0db8ea2de3a8a8e4b40e69fc8642c7d7cb68/Lib/asyncio/futures.py#L118

If you look at the link above, the `val` has been cast to bool type. This works well without bool casting.

This issue is my first issue. So if you have a problem, please tell me!

Thanks You!
History
Date User Action Args
2020-07-08 14:25:35ys19991setrecipients: + ys19991, asvetlov, yselivanov
2020-07-08 14:25:35ys19991setmessageid: <1594218335.75.0.478641917124.issue41241@roundup.psfhosted.org>
2020-07-08 14:25:35ys19991linkissue41241 messages
2020-07-08 14:25:35ys19991create