mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-14 00:25:17 +00:00
Fix dis.dis to prints inner constant codes like CPython
This commit is contained in:
parent
09e4e9a86c
commit
6c96793f05
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue