(self, rest=b'')
Write bytecode and cut the program of beyond the current position.
Write bytecode and cut the program of beyond the current position.
Write bytecode and cut the program of beyond the current position .
def truncate(self, rest=b''):
        """Write bytecode and cut the program of beyond the current position."""
        self.bytecode.write(rest if rest else b'\0\0\0')
        self.bytecode.truncate()
        # cut off at current position
        self.code_size = self.bytecode.tell()
def truncate ( self , rest = b'' ) : self . bytecode . write ( rest if rest else b'\0\0\0' ) self . bytecode . truncate ( ) # cut off at current position self . code_size = self . bytecode . tell ( )