#jython IRC Log


IRC Log for 2013-09-22

Timestamps are in GMT/BST.

[0:02] * sinistersnare (6c1c5d99@gateway/web/cgi-irc/kiwiirc.com/ip. Quit (Client Quit)
[1:23] * lheuer1 (~Adium@g228133003.adsl.alicedsl.de) has joined #jython
[1:26] * lheuer (~Adium@unaffiliated/lheuer) Quit (Ping timeout: 245 seconds)
[2:12] * lheuer1 (~Adium@g228133003.adsl.alicedsl.de) Quit (Quit: Leaving.)
[3:30] * Arfrever (~Arfrever@apache/committer/Arfrever) Quit (Ping timeout: 245 seconds)
[4:25] * sinistersnare (6c1c5d99@gateway/web/cgi-irc/kiwiirc.com/ip. has joined #jython
[4:25] <sinistersnare> hello, is there a way to compile jython to .class files? (also i think i found a typo in the jythonbook (http://www.jython.org/jythonbook/en/1.0/LangSyntax.html#classes) i think the first example needs to be tabified...
[4:57] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[5:19] <sinistersnare> apparently jythonc doesnt work, so i guess ill just have to read my jython file into a string and then execute it?
[5:28] * lheuer (~Adium@g228133003.adsl.alicedsl.de) has joined #jython
[5:28] * lheuer (~Adium@g228133003.adsl.alicedsl.de) Quit (Changing host)
[5:28] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[5:32] * sinistersnare (6c1c5d99@gateway/web/cgi-irc/kiwiirc.com/ip. Quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
[6:25] * purplefox (~purplefox@host-80-43-252-143.as13285.net) has joined #jython
[8:37] * purplefox (~purplefox@host-80-43-252-143.as13285.net) Quit (Ping timeout: 260 seconds)
[8:52] * purplefox (~purplefox@host-80-43-252-143.as13285.net) has joined #jython
[12:14] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 248 seconds)
[13:29] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[13:30] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Client Quit)
[16:11] * sinistersnare (6c1c5d99@gateway/web/cgi-irc/kiwiirc.com/ip. has joined #jython
[16:24] * sinistersnare (6c1c5d99@gateway/web/cgi-irc/kiwiirc.com/ip. Quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
[16:30] * sinistersnare (6c1c5d99@gateway/web/cgi-irc/kiwiirc.com/ip. has joined #jython
[16:30] <sinistersnare> ok im setting up jython with pydev, lets see if i can get some libgdx going!
[16:45] * thereisnospoon (~thereisno@27-33-1-87.tpgi.com.au) Quit (Ping timeout: 245 seconds)
[17:04] <sinistersnare> how can i call a jython class like its a java class?
[17:05] <sinistersnare> i have code that runs like this: "new LwjglApplication(new GdxJython(), cfg);" in java, and im not sure how to change the "new GdxJython()" to a call to the jython code
[17:27] <sinistersnare> i posted to the mailing list, im quite lost :p
[17:28] * thereisnospoon (~thereisno@27-33-1-87.tpgi.com.au) has joined #jython
[17:42] * plankton (~plankton@187-54-47-149.cscgo702.dsl.brasiltelecom.net.br) has joined #jython
[18:03] <agronholm> sinistersnare: remove the "new"
[18:03] <sinistersnare> agronholm: how will it know? this is java code btw
[18:04] <sinistersnare> its in a different file... let me see if i can shed some light...
[18:05] <sinistersnare> https://gist.github.com/sinistersnare/7e47ab1e743b8c0c6899 here
[18:06] <sinistersnare> actually, a guy on the mailing list sent me this link https://wiki.python.org/jython/JythonMonthly/Articles/October2006/3
[18:06] <sinistersnare> i guess an object factory is necessary
[18:08] <agronholm> how will it know what?
[18:09] <agronholm> oh, you wanted to instantiate a python class from java
[18:09] <sinistersnare> yep!
[18:10] <agronholm> the easiest way is probably eval()
[18:10] <agronholm> where is your PythonInterpreter?
[18:10] <sinistersnare> nowhere.... i havent gotten that far!
[18:11] <sinistersnare> i need to figure out how to add the correct jars to the working libgdx project i have
[18:11] <sinistersnare> are the jars located in the jython installation folder?
[18:12] <agronholm> you just need jython.jar
[18:12] <sinistersnare> ok
[18:12] <sinistersnare> ill copy that into my /lib then
[18:12] <agronholm> are you planning to use the full installation or the standalone version?
[18:13] <sinistersnare> i did a full installation
[18:13] <sinistersnare> but i guess the standalone is just the jar?
[18:14] <agronholm> it's not the same you get from the standalone install
[18:14] <agronholm> the standalone install contains the standard library as well
[18:14] <agronholm> jython isn't very useful without that
[18:14] <sinistersnare> oh i guess i should do a standalone then!
[18:15] <agronholm> if you plan on using the full install, you can do that too
[18:15] <agronholm> but your application won't be very portable then
[18:15] <sinistersnare> i can just copy the jar into my libs folder?
[18:16] <sinistersnare> cause i just did that
[18:17] <sinistersnare> ok so it recognized the jar, ima follow this link https://wiki.python.org/jython/JythonMonthly/Articles/October2006/3 later, because now its bowling time!
[18:17] <sinistersnare> thanks for your help!
[18:18] * sinistersnare is now known as sinsnare|away
[19:05] * plankton_ (~plankton@189-11-41-5.cscgo702.dsl.brasiltelecom.net.br) has joined #jython
[19:07] * plankton (~plankton@187-54-47-149.cscgo702.dsl.brasiltelecom.net.br) Quit (Ping timeout: 248 seconds)
[19:09] * plankton_ is now known as plankton
[19:49] * purplefox (~purplefox@host-80-43-252-143.as13285.net) Quit (Ping timeout: 260 seconds)
[19:51] * plankton_ (~plankton@201-24-201-35.cscgo702.dsl.brasiltelecom.net.br) has joined #jython
[19:53] * plankton (~plankton@189-11-41-5.cscgo702.dsl.brasiltelecom.net.br) Quit (Ping timeout: 260 seconds)
[20:02] * plankton_ (~plankton@201-24-201-35.cscgo702.dsl.brasiltelecom.net.br) Quit (Ping timeout: 245 seconds)
[20:04] * plankton_ (~plankton@189-11-42-22.cscgo702.dsl.brasiltelecom.net.br) has joined #jython
[20:10] * sinsnare|away is now known as sinistersnare
[20:56] * plankton_ (~plankton@189-11-42-22.cscgo702.dsl.brasiltelecom.net.br) Quit (Quit: Saindo)
[21:53] * enebo (~enebo@mobile-166-137-187-001.mycingular.net) has joined #jython
[22:46] * enebo (~enebo@mobile-166-137-187-001.mycingular.net) Quit (Quit: enebo)
[23:00] * sinistersnare (6c1c5d99@gateway/web/cgi-irc/kiwiirc.com/ip. has left #jython
[23:01] * sinistersnare (6c1c5d99@gateway/web/cgi-irc/kiwiirc.com/ip. has joined #jython
[23:23] <sinistersnare> how can i make PyDev work with both java and python files?
[23:34] <sinistersnare> https://wiki.python.org/jython/JythonMonthly/Articles/October2006/3 im following this, and when i try to add a java class to my project, it complains that im not in a java project (because i made a python project!) so im not sure what to do


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