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 serhiy.storchaka
Recipients Shai, brett.cannon, gregory.p.smith, hongweipeng, pitrou, serhiy.storchaka
Date 2019-09-10.18:20:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568139611.06.0.510037180703.issue37935@roundup.psfhosted.org>
In-reply-to
Content
Any optimization can be accepted only when we have any prove that the change actually has measurable effect, and that it is large enough.

Avoiding calling list() on the output of scandir() may be not harmless. For example it will left open a file descriptor. This can cause issues if walk a deep tree, especially if do this in few threads simultaneously. list() guaranties that it is open in very limited time (although using a context manager is desirable).
History
Date User Action Args
2019-09-10 18:20:11serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, gregory.p.smith, pitrou, hongweipeng, Shai
2019-09-10 18:20:11serhiy.storchakasetmessageid: <1568139611.06.0.510037180703.issue37935@roundup.psfhosted.org>
2019-09-10 18:20:11serhiy.storchakalinkissue37935 messages
2019-09-10 18:20:10serhiy.storchakacreate