Fix dis.dis to prints inner constant codes like CPython

This commit is contained in:
Jeong YunWon 2020-09-21 06:07:20 +09:00
parent 09e4e9a86c
commit 6c96793f05

View file

@ -1188,6 +1188,7 @@ impl<O: OutputStream> Compiler<O> {
}
fn store_docstring(&mut self, doc_str: Option<String>) {
// TODO: __doc__ must be default None and no bytecodes unless it is Some
// Duplicate top of stack (the function or class object)
self.emit(Instruction::Duplicate);