Ticket #2491: trac_2491.patch
| File trac_2491.patch, 0.9 kB (added by mhansen, 4 months ago) |
|---|
-
a/sage/combinat/sloane_functions.py
old new 148 148 return cmp(type(self), type(other)) 149 149 return cmp(repr(self), repr(other)) 150 150 151 def _sage_src_(self): 152 """ 153 Returns the source code for the class of self. 154 155 EXAMPLES: 156 sage: sloane.A000045._sage_src_() 157 'class A000045(...' 158 """ 159 from sage.misc.sageinspect import sage_getsource 160 return sage_getsource(self.__class__) 161 162 151 163 def __call__(self, n): 152 164 """ 153 165 EXAMPLES: