Psycoログの出力は次のようになります。
21:08:47.56 Logging started, 10/29/09 %%%%%%%%%%%%%%%%%%%%
21:08:47.56 unsupported opcode 54 at create_l0:124 % %
21:08:47.56 unsupported opcode 54 at create_lx:228 % %
問題の行
class File:
def __init__(self, path, header):
self.path = path
self.header = header
self.file = path + '/' + header.to_filename()
self.pfile = None
def add_entry(self, entry): # line 124
self.pfile.write(entry.to_binary())
def open(self):
self.pfile = open(self.file, 'wb')
self.pfile.write(self.header.to_binary())
def close(self):
self.pfile.close()
def write(self, data):
self.pfile.write(data)
次の:
nat_file = File(target + '/' + name, nat_header)
nat_file.open()
# add first value
nat_file.add_entry(DataBlock(t, q, 0.0, 1, v))
# add all others
while True:
try:
t, v, q = f.next()
except StopIteration:
break
nat_file.add_entry(DataBlock(t, q, 0.0, 1, v))
nat_file.close() # line 228
問題が何であるか私は少し途方に暮れています。何か案は?