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 eli.bendersky, scoder, serhiy.storchaka, vstinner
Date 2017-05-04.19:13:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493925216.78.0.425594906341.issue30264@psf.upfronthosting.co.za>
In-reply-to
Content
What if the third-party parser don't use prepare_input_source()? It can use more efficient way if pass just a file name.

Wouldn't be better to move your code into the parser's method parse()? If a file is opened inside the parse() method and is not exposed outside, that method should close it.
History
Date User Action Args
2017-05-04 19:13:36serhiy.storchakasetrecipients: + serhiy.storchaka, scoder, vstinner, eli.bendersky
2017-05-04 19:13:36serhiy.storchakasetmessageid: <1493925216.78.0.425594906341.issue30264@psf.upfronthosting.co.za>
2017-05-04 19:13:36serhiy.storchakalinkissue30264 messages
2017-05-04 19:13:36serhiy.storchakacreate