From 6c96793f058fe5efea71ec4f9af0831e8f2267a0 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Mon, 21 Sep 2020 06:07:20 +0900 Subject: [PATCH] Fix dis.dis to prints inner constant codes like CPython --- src/compile.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compile.rs b/src/compile.rs index a3b7584..05d0772 100644 --- a/src/compile.rs +++ b/src/compile.rs @@ -1188,6 +1188,7 @@ impl Compiler { } fn store_docstring(&mut self, doc_str: Option) { + // 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);