#jython IRC Log (v0.9)

Index

IRC Log for 2017-07-19

Timestamps are in GMT/BST.

[1:13] <lawltoad> haha, i'm in the same boat. it's a cool project and it's amazing to see how well it works, but if I pitch it internally it looks like a super dead project T_T
[2:11] * lopex (uid4272@gateway/web/irccloud.com/x-qwhirmaxdrvfboqu) Quit (Quit: Connection closed for inactivity)
[9:13] * lopex (uid4272@gateway/web/irccloud.com/x-iqrluvldlgdrniri) has joined #jython
[15:45] * WhIteSidE (46a214b3@gateway/web/freenode/ip.70.162.20.179) has joined #jython
[15:55] <WhIteSidE> Hello. We have a large corpus of python code (mostly lots and lots of string manipulation and searching) which we'd like to run on Android. The code does not use eval anywhere. Using the latest 2.7.1 I've run the "compileall" module, which generates class files for each python file. I'm trying to figure out if I can wrap up a simple, pure java bootstrap method to call these class files directly.
[15:58] <WhIteSidE> For example. in __builtin__.java, executing a file ultimately calls Py.runCode(). My question is looking for some pointers on how to get a reference to a PyCode object which I can run?
[16:00] <WhIteSidE> Why do I care? In order to run this code on Android, I need to dex the class files. I've dexed several of the class file which compileall output and they passed, so there's nothing in the generated bytecode (that I've encountered so far) that would prevent dexing
[16:01] <WhIteSidE> And since there's no eval in our python library, there's no reason new bytecode should need to be generated
[16:02] <WhIteSidE> Eseentially, what I really want is a jythonc type experience -- turn my python into class files which can be bundled up as part of an application. But the actual motivation is to just be able to dex my generated files.
[16:25] <WhIteSidE> Modules seem to have a method `org.python.core.PyCode getMain()`. Can I just write a small java wrapper to load this into a reference, setup a locals object and call Py.runCode()?
[17:21] * WhIteSidE (46a214b3@gateway/web/freenode/ip.70.162.20.179) Quit (Ping timeout: 260 seconds)
[19:57] * mbooth (~mbooth@redhat/mbooth) Quit (Quit: I'm off!)
[19:59] * mbooth (~mbooth@darkpeak.org) has joined #jython
[19:59] * mbooth (~mbooth@darkpeak.org) Quit (Changing host)
[19:59] * mbooth (~mbooth@redhat/mbooth) has joined #jython

Index

These logs were automatically created by JythonLogBot_ on irc.freenode.net using a slightly modified version of the Java IRC LogBot (github).