Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1030294 // jythonToCodeObject - for inspecting generated byte code

JavaX fragment (include)

1  
sO jythonToCodeObject(S code) {
2  
  BytecodeLoader.recordRawData = true;
3  
4  
  PyCode compiled = jython().compile(code);
5  
  // assuming compiled is an instance of PyTableCode
6  
  ret getOpt(compiled, "funcs");
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030294
Snippet name: jythonToCodeObject - for inspecting generated byte code
Eternal ID of this version: #1030294/1
Text MD5: 8467295fa03df5fde0afb354ec5dd871
Author: stefan
Category: javax / jython
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-27 16:22:32
Source code size: 209 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 172 / 191
Referenced in: [show references]