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)

sO jythonToCodeObject(S code) {
  BytecodeLoader.recordRawData = true;

  PyCode compiled = jython().compile(code);
  // assuming compiled is an instance of PyTableCode
  ret getOpt(compiled, "funcs");
}

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: 170 / 188
Referenced in: [show references]