##// END OF EJS Templates
Jorgen's cache size & overflow warning patch...
vivainio -
Show More
@@ -1871,7 +1871,8 b' class idump(Display):'
1871 1871 rows = []
1872 1872 for item in xiter(self.input, "default"):
1873 1873 row = {}
1874 if not self.attrs:
1874 attrs = self.attrs
1875 if not attrs:
1875 1876 attrs = xattrs(item, "default")
1876 1877 for attrname in attrs:
1877 1878 if attrname not in allattrset:
@@ -2,7 +2,7 b''
2 2 """
3 3 Classes for handling input/output prompts.
4 4
5 $Id: Prompts.py 1264 2006-04-11 19:24:29Z vivainio $"""
5 $Id: Prompts.py 1272 2006-04-25 17:04:17Z vivainio $"""
6 6
7 7 #*****************************************************************************
8 8 # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
@@ -397,7 +397,7 b' class CachedOutput:'
397 397 output_sep='\n',output_sep2='',
398 398 ps1 = None, ps2 = None,ps_out = None,pad_left=True):
399 399
400 cache_size_min = 20
400 cache_size_min = 3
401 401 if cache_size <= 0:
402 402 self.do_full_cache = 0
403 403 cache_size = 0
@@ -544,8 +544,8 b' class CachedOutput:'
544 544 def update(self,arg):
545 545 #print '***cache_count', self.cache_count # dbg
546 546 if len(self.user_ns['_oh']) >= self.cache_size and self.do_full_cache:
547 warn('Output cache limit (currently '+\
548 `self.cache_count`+' entries) hit.\n'
547 warn('Output cache limit (currently '+
548 `self.cache_size`+' entries) hit.\n'
549 549 'Flushing cache and resetting history counter...\n'
550 550 'The only history variables available will be _,__,___ and _1\n'
551 551 'with the current result.')
General Comments 0
You need to be logged in to leave comments. Login now