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 Pankaj Pandey
Recipients Pankaj Pandey
Date 2018-05-20.16:38:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526834329.07.0.682650639539.issue33587@psf.upfronthosting.co.za>
In-reply-to
Content
The specific os.path.exists() call is shown here: https://github.com/python/cpython/pull/6805

If the filename is already in linecache or the module has a PEP 302 loader, then the os.path.exists() call is ignored. Hence it is better to call it only if its value is needed.

Attached a very simple case which shows the impact of the change:
History
Date User Action Args
2018-05-20 16:38:49Pankaj Pandeysetrecipients: + Pankaj Pandey
2018-05-20 16:38:49Pankaj Pandeysetmessageid: <1526834329.07.0.682650639539.issue33587@psf.upfronthosting.co.za>
2018-05-20 16:38:49Pankaj Pandeylinkissue33587 messages
2018-05-20 16:38:49Pankaj Pandeycreate