Author serhiy.storchaka
Recipients ezio.melotti, michael.foord, pitrou, serhiy.storchaka, vstinner
Date 2015-04-01.12:02:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
getlines() already returns an empty list on OSError. Clearing the cache on MemoryError will help to avoid other MemoryErrors. And after this there is a large chance the repeated reading will be successful. In any case it wouldn't make worse.

If don't change linecache, then we should patch all places where linecache is used: traceback, idlelib, warnings, trace, debugger, etc. I intentionally made the fix at the low level, so it fixes all issues in one place.
Date User Action Args
2015-04-01 12:02:28serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, vstinner, ezio.melotti, michael.foord
2015-04-01 12:02:28serhiy.storchakasetmessageid: <>
2015-04-01 12:02:28serhiy.storchakalinkissue23838 messages
2015-04-01 12:02:28serhiy.storchakacreate