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