#jython IRC Log (v0.9)

Index

IRC Log for 2010-05-05

Timestamps are in GMT/BST.

[0:15] -zelazny.freenode.net- *** Looking up your hostname...
[0:15] -zelazny.freenode.net- *** Checking Ident
[0:15] -zelazny.freenode.net- *** No Ident response
[0:15] -zelazny.freenode.net- *** Found your hostname
[0:15] [frigg VERSION]
[0:15] * JythonLogBot (~PircBot@adsl-89-217-233-241.adslplus.ch) has joined #jython
[0:15] * Topic is 'Jython 2.5.1 final at http://www.jython.org/ | This channel is logged: http://jython.extreme.st/irclogs/ | Please update the wiki: http://wiki.python.org/jython/ | Pastebin: http://pylonshq.com/pasties | IRC Channel: http://wiki.python.org/jython/IrcChannel | Jython Book: http://jythonbook.com | Podcast: http://www.jythonpodcast.com'
[0:15] * Set by pjenvey!~pjenvey@underboss.org on Tue May 04 00:00:54 CEST 2010
[0:15] * Oti (~ohumbel@adsl-89-217-233-241.adslplus.ch) has joined #jython
[0:16] * enebo (~enebo@97-127-25-26.mpls.qwest.net) Quit (Quit: enebo)
[1:00] * zooko (~user@173-164-32-245-colorado.hfc.comcastbusiness.net) has joined #jython
[1:08] * zooko (~user@173-164-32-245-colorado.hfc.comcastbusiness.net) Quit (Ping timeout: 248 seconds)
[1:39] * enebo (~enebo@97-127-25-26.mpls.qwest.net) has joined #jython
[2:16] * enebo (~enebo@97-127-25-26.mpls.qwest.net) Quit (Quit: enebo)
[2:53] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 245 seconds)
[3:03] * ttmrichter (~ttmrichte@111.173.72.117) has joined #jython
[3:05] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[3:14] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Max SendQ exceeded)
[3:15] * lopex (lopex@chello089076044027.chello.pl) Quit ()
[3:15] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[3:17] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[3:28] * juneau001 (~juneau@pool-72-69-78-87.chi01.dsl-w.verizon.net) has joined #jython
[4:11] * stakkars (~tismer@i577B4882.versanet.de) Quit (Ping timeout: 265 seconds)
[4:16] * stakkars (~tismer@i577B75ED.versanet.de) has joined #jython
[4:30] * zooko (~user@97-118-107-248.hlrn.qwest.net) has joined #jython
[5:07] * headius (~headius@216.160.3.79) has joined #jython
[5:48] * zooko (~user@97-118-107-248.hlrn.qwest.net) Quit (Ping timeout: 264 seconds)
[5:48] * zooko (~user@97-118-107-248.hlrn.qwest.net) has joined #jython
[5:57] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[7:10] * zooko (~user@97-118-107-248.hlrn.qwest.net) Quit (Quit: Zzz...)
[7:35] * juneau001_ (~juneau@pool-72-69-225-219.chi01.dsl-w.verizon.net) has joined #jython
[7:35] * pigletto (~quassel@188.33.113.167) has joined #jython
[7:37] * juneau001 (~juneau@pool-72-69-78-87.chi01.dsl-w.verizon.net) Quit (Ping timeout: 245 seconds)
[7:37] * juneau001_ is now known as juneau001
[8:55] * thobe (~Adium@212-162-171-110.skbbip.com) has joined #jython
[9:13] * sabi (~nicholas@fortinbras.zoiks.net) Quit (Ping timeout: 240 seconds)
[9:20] * sabi (~nicholas@fortinbras.zoiks.net) has joined #jython
[9:46] * sabi (~nicholas@fortinbras.zoiks.net) Quit (Ping timeout: 276 seconds)
[9:57] * sabi (~nicholas@fortinbras.zoiks.net) has joined #jython
[10:46] * sabi (~nicholas@fortinbras.zoiks.net) Quit (*.net *.split)
[10:46] * njoyce (~njoyce@212.227.250.10) Quit (*.net *.split)
[10:47] * sabi (~nicholas@fortinbras.zoiks.net) has joined #jython
[10:47] * njoyce (~njoyce@212.227.250.10) has joined #jython
[10:48] * hipertracker (~hipertrac@89.167.220.4) has joined #jython
[10:57] * sabi (~nicholas@fortinbras.zoiks.net) Quit (Ping timeout: 276 seconds)
[10:58] * sabi (~nicholas@fortinbras.zoiks.net) has joined #jython
[11:16] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) has joined #jython
[11:30] * stakkars (~tismer@i577B75ED.versanet.de) Quit (Quit: stakkars)
[11:51] * juneau001 (~juneau@pool-72-69-225-219.chi01.dsl-w.verizon.net) Quit (Quit: juneau001)
[12:00] * stakkars (~tismer@82.113.119.233) has joined #jython
[12:18] * stakkars (~tismer@82.113.119.233) Quit (Quit: stakkars)
[12:31] * noes (~cs@static-88.131.45.221.addr.tdcsong.se) has joined #jython
[12:32] <noes> I'm trying to get cachedir to work. I have the .py files in a jar, so startup time is slow because it can not cache compiled py files.
[12:32] <noes> is this a FAQ someplace?
[12:53] <agronholm> the cachedir is for caching java package information
[12:53] <agronholm> it has nothing to do with python code
[12:54] <agronholm> you should precompile your .py files to .class files if you are concerned about the compilation overhead
[12:54] <agronholm> there is an ant task for that, or you can just use jython -m compileall .
[12:54] <agronholm> bbl =>
[13:03] * juneau001 (~juneau@FESS-107230.dhcp.fnal.gov) has joined #jython
[13:13] * stakkars (~tismer@82.113.119.243) has joined #jython
[13:18] * stakkars_ (~tismer@82.113.106.105) has joined #jython
[13:20] * stakkars (~tismer@82.113.119.243) Quit (Ping timeout: 264 seconds)
[13:20] * stakkars_ is now known as stakkars
[13:46] * stakkars (~tismer@82.113.106.105) Quit (Ping timeout: 240 seconds)
[14:10] * whaley (~whaley@ec2-75-101-142-146.compute-1.amazonaws.com) has joined #jython
[14:11] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 245 seconds)
[14:29] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Quit: Leaving)
[14:43] * thobe (~Adium@212-162-171-110.skbbip.com) Quit (Read error: Connection reset by peer)
[14:43] * thobe (~Adium@212-162-171-110.skbbip.com) has joined #jython
[15:08] * clajo04_ (~clajo04_@71.167.166.169) has joined #jython
[15:26] * pigletto (~quassel@188.33.113.167) Quit (Read error: Connection reset by peer)
[15:42] * hipertracker (~hipertrac@89.167.220.4) Quit (Quit: hipertracker)
[16:04] * hipertracker (~hipertrac@89.167.220.4) has joined #jython
[16:09] * enebo (~enebo@97-127-25-26.mpls.qwest.net) has joined #jython
[16:15] * zooko (~user@97-118-107-248.hlrn.qwest.net) has joined #jython
[16:18] * skay (~skay@pat1.orbitz.net) has joined #jython
[16:21] * headius (~headius@216.160.3.79) has joined #jython
[16:22] * plankton (~peretto@187-17-17-100.wln.net.br) has joined #jython
[16:37] * ttmrichter (~ttmrichte@111.173.72.117) Quit (Ping timeout: 268 seconds)
[16:41] * whaley (~whaley@ec2-75-101-142-146.compute-1.amazonaws.com) Quit (*.net *.split)
[16:41] * jony_kalavera (~jony_kala@200.67.176.253) Quit (*.net *.split)
[16:42] * plankton (~peretto@187-17-17-100.wln.net.br) Quit ()
[16:49] * jdmmmmm (~user@12.34.4.34) has joined #jython
[16:50] * whaley (~whaley@ec2-75-101-142-146.compute-1.amazonaws.com) has joined #jython
[16:50] * jony_kalavera (~jony_kala@200.67.176.253) has joined #jython
[16:51] * jdmmmmm (~user@12.34.4.34) has left #jython
[17:31] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Quit: jabley)
[17:35] * enebo (~enebo@97-127-25-26.mpls.qwest.net) Quit (Ping timeout: 245 seconds)
[17:36] * headius (~headius@216.160.3.79) Quit (Ping timeout: 268 seconds)
[17:45] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[17:54] * zooko (~user@97-118-107-248.hlrn.qwest.net) Quit (Ping timeout: 252 seconds)
[18:05] * clajo04_ (~clajo04_@71.167.166.169) has left #jython
[18:06] * clajo04_ (~clajo04_@71.167.166.169) has joined #jython
[18:23] * whaley (~whaley@ec2-75-101-142-146.compute-1.amazonaws.com) Quit (Quit: :-x)
[18:33] * headius (~headius@216.160.3.79) has joined #jython
[18:49] * enebo (~enebo@174-20-111-148.mpls.qwest.net) has joined #jython
[18:49] * verterok_ (~ggonzalez@unaffiliated/verterok) has joined #jython
[18:52] * verterok (~ggonzalez@unaffiliated/verterok) Quit (Ping timeout: 240 seconds)
[19:00] * hipertracker (~hipertrac@89.167.220.4) Quit (Quit: hipertracker)
[19:01] * thobe (~Adium@212-162-171-110.skbbip.com) Quit (Quit: Leaving.)
[19:06] * whaley (~whaley@68-118-155-130.static.ahvl.nc.charter.com) has joined #jython
[19:46] * mateobur (~8fef4beb@gateway/web/freenode/x-joupjinqthaivbxz) has joined #jython
[19:47] <mateobur> hello
[19:47] <mateobur> is it possible to call python code from within java code ?
[19:49] <agronholm> yes
[19:49] <agronholm> but harder than the other way around
[19:49] <agronholm> it depends on how you are using jython
[19:57] <mateobur> agronholm: I cant find any good examples
[19:57] <mateobur> Im just including the jython lib in the project
[19:58] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[20:03] <agronholm> mateobur, so are you instantiating a PythonInterpreter in your java code?
[20:03] <mateobur> for the moment I was just looking for an example :)
[20:04] <agronholm> the jython book should have some
[20:04] <agronholm> http://jythonpodcast.hostjava.net/jythonbook/en/1.0/JythonAndJavaIntegration.html#using-jython-within-java-applications
[20:05] <mateobur> thanks :)
[20:05] <mateobur> Im looking for just a little code snippet with the call
[20:06] <agronholm> well the minimum amount of code for that is to call .exec("code here") on a PythonInterpreter
[20:12] <mateobur> agronholm: yes I have managed to do that, now I need to know how to collect the output
[20:13] <agronholm> from stdout, or return value of some function call?
[20:13] <mateobur> agronholm: from a function call
[20:13] <mateobur> pi.exec("main.say_hello()");
[20:13] <mateobur> def say_hello(): return "hello"
[20:14] <agronholm> PyObject retval = pi.eval("main.say_hello()");
[20:14] <mateobur> ahhh!!!
[20:14] <agronholm> you can then use Py.tojava() to convert the result to a Java object
[20:15] <mateobur> you are a hero!
[20:15] <mateobur> thanks
[20:15] <mateobur> hehe
[20:16] <agronholm> np
[20:17] * headius (~headius@216.160.17.126) has joined #jython
[20:30] <mateobur> agronholm: very curious
[20:30] <agronholm> what is
[20:30] <mateobur> I have in the imports <%@page import="org.python.util.PythonInterpreter" %>
[20:30] <mateobur> and its autocompleted as a valid import
[20:30] <agronholm> why wouldn't it?
[20:30] <mateobur> cannot find symbol symbol : class PythonInterpreter
[20:31] <agronholm> well that's the proper import
[20:31] <agronholm> never seen jython being embedded in jsp before :/
[20:32] <mateobur> yes, it's curious
[20:32] <mateobur> and then at runtime it tells me
[20:32] <mateobur> in plain Java it works perfectly
[20:33] <agronholm> did you remember to add the standalone jython.jar in the appserver's libs?
[20:34] <mateobur> yes yes, otherwise it wouldnt autocomplete
[20:34] <agronholm> well since I know nothing about your dev environment, I can't vouch for that
[20:35] <mateobur> ok, thanks
[20:37] * stakkars (~tismer@82.113.121.104) has joined #jython
[20:46] * juneau001 (~juneau@FESS-107230.dhcp.fnal.gov) Quit (Quit: juneau001)
[20:47] * mateobur (~8fef4beb@gateway/web/freenode/x-joupjinqthaivbxz) Quit (Quit: Page closed)
[20:57] * stakkars (~tismer@82.113.121.104) Quit (Ping timeout: 265 seconds)
[21:28] * juneau001 (~juneau@pool-72-69-76-42.chi01.dsl-w.verizon.net) has joined #jython
[21:32] * whaley (~whaley@68-118-155-130.static.ahvl.nc.charter.com) Quit (Quit: :-x)
[21:55] * verterok_ is now known as verterok
[22:01] * stakkars (~tismer@82.113.121.162) has joined #jython
[22:14] * stakkars (~tismer@82.113.121.162) Quit (Ping timeout: 245 seconds)
[22:24] * stakkars (~tismer@brln-4db97cba.pool.mediaWays.net) has joined #jython
[22:53] * stakkars (~tismer@brln-4db97cba.pool.mediaWays.net) Quit (Quit: stakkars)
[23:12] * froosch (~froschi@147.172.224.61) Quit (Ping timeout: 268 seconds)
[23:13] * froosch (~froschi@147.172.224.61) has joined #jython
[23:24] * stakkars (~tismer@i577B75ED.versanet.de) has joined #jython
[23:27] * zooko (~user@173-164-32-245-colorado.hfc.comcastbusiness.net) has joined #jython
[23:50] * zooko (~user@173-164-32-245-colorado.hfc.comcastbusiness.net) Quit (Ping timeout: 264 seconds)
[23:53] * zooko (~user@173-164-32-245-colorado.hfc.comcastbusiness.net) has joined #jython
[23:56] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[23:57] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Max SendQ exceeded)
[23:59] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) 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).