Author vstinner
Recipients ezio.melotti, michael.foord, pitrou, serhiy.storchaka, vstinner
Date 2015-04-01.12:08:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
2015-04-01 14:02 GMT+02:00 Serhiy Storchaka <>:
> getlines() already returns an empty list on OSError.

Oh, I misread getlines(), you're right.

>  Clearing the cache on MemoryError will help to avoid other MemoryErrors. And after this there is a large chance

I agree, but please avoid retrying on MemoryError. IMO clearing the
cache and return [] is enough.

> 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.

I agree.
Date User Action Args
2015-04-01 12:08:27vstinnersetrecipients: + vstinner, pitrou, ezio.melotti, michael.foord, serhiy.storchaka
2015-04-01 12:08:27vstinnerlinkissue23838 messages
2015-04-01 12:08:27vstinnercreate