(self, source)
return filename
Stuff source in the filename cache
Stuff source in the filename cache
Stuff source in the filename cache
def stuffsource(self, source):
        "Stuff source in the filename cache"
        filename = "<pyshell#%d>" % self.gid
        self.gid = self.gid + 1
        lines = source.split("\n")
        linecache.cache[filename] = len(source)+1, 0, lines, filename
        return filename
def stuffsource ( self , source ) : filename = "<pyshell#%d>" % self . gid self . gid = self . gid + 1 lines = source . split ( "\n" ) linecache . cache [ filename ] = len ( source ) + 1 , 0 , lines , filename return filename