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 benhoyt, gvanrossum, martin.panter, serhiy.storchaka, vstinner
Date 2016-01-14.22:34:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
If scandir() is implemented as native Python generator (see for example issue25911), it could easily be converted to context manager:

def scandir(path):
    return contextlib.closing(native_scandir(path))

def native_scandir(path):
    yield ...
Date User Action Args
2016-01-14 22:34:59serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, vstinner, benhoyt, martin.panter
2016-01-14 22:34:59serhiy.storchakasetmessageid: <>
2016-01-14 22:34:59serhiy.storchakalinkissue25994 messages
2016-01-14 22:34:59serhiy.storchakacreate