Message239792
2015-04-01 14:02 GMT+02:00 Serhiy Storchaka <report@bugs.python.org>:
> 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:27 | vstinner | set | recipients:
+ vstinner, pitrou, ezio.melotti, michael.foord, serhiy.storchaka |
2015-04-01 12:08:27 | vstinner | link | issue23838 messages |
2015-04-01 12:08:27 | vstinner | create | |
|