#jython IRC Log (v0.9)

Index

IRC Log for 2010-05-07

Timestamps are in GMT/BST.

[0:20] * lucian_ (~lucian@cpc3-benw9-2-0-cust344.gate.cable.virginmedia.com) has joined #jython
[0:22] * lucian (~lucian@cpc3-benw9-2-0-cust344.gate.cable.virginmedia.com) Quit (Ping timeout: 240 seconds)
[0:24] * headius (~headius@216.160.3.79) has joined #jython
[0:25] * __init__ (tim@dyn128-54-163-108.ucsd.edu) has joined #jython
[0:26] <__init__> hello
[0:27] <__init__> anyone here?
[0:28] * lucian (~lucian@cpc3-benw9-2-0-cust344.gate.cable.virginmedia.com) has joined #jython
[0:30] <agronholm> __init__, sure
[0:30] <agronholm> just don't be so frickin' impatient
[0:31] <__init__> haha
[0:31] * lucian_ (~lucian@cpc3-benw9-2-0-cust344.gate.cable.virginmedia.com) Quit (Ping timeout: 276 seconds)
[0:31] <__init__> what's up?
[0:31] <agronholm> is there something in particular you wanted to ask?
[0:32] <__init__> yeah
[0:32] <agronholm> then ask
[0:32] <__init__> is there a way to pass a reference to java methods/classes
[0:32] <__init__> from python classes?
[0:32] <agronholm> from python classes to where?
[0:33] <__init__> for example, if i have an instance of a java class running
[0:34] <__init__> can I run a jython script that accesses variables in that instance of the java class?
[0:34] <agronholm> of course
[0:34] <__init__> what would I use?
[0:34] <__init__> get/set?
[0:34] <agronholm> depends on how you run jython
[0:35] <agronholm> do you have a PythonInterpreter?
[0:35] <__init__> yeah
[0:35] <__init__> I have Jython set up as a standalone jar
[0:35] <agronholm> well, there are at least two ways
[0:35] <__init__> which is linked in the ClassPath of my java project
[0:35] <agronholm> the simplest one is .exec() or .eval()
[0:36] <agronholm> if you want to instantiate the class in python, that's even simpler
[0:36] <agronholm> just import it and use it
[0:36] <__init__> right now
[0:36] <agronholm> or if the instance is stored in a public static field of a class, you can use that too
[0:36] <__init__> i'm doing an execfile()
[0:37] <__init__> on an py script stored somewhere else
[0:37] <agronholm> what arguments does that take
[0:37] <__init__> nothing
[0:37] <agronholm> then I suppose your options are a tad more limited
[0:38] <__init__> you see, I don't want to create a new instance of the Java class
[0:38] <agronholm> what does the application do?
[0:38] <__init__> haha
[0:38] <__init__> it is actually an IRC client
[0:38] <agronholm> I mean, I've never used execfile() myself
[0:39] <agronholm> I'm importing python modules to the interpreter
[0:39] <__init__> so the Java files handle the sockets, Swing draws the window, and the commands etc..
[0:40] <agronholm> so why not do everything from python code?
[0:40] <__init__> while Jython is to be used to automate additional tasks
[0:40] <__init__> dunno
[0:40] <agronholm> it's a lot simpler that way
[0:41] <__init__> maybe
[0:41] <__init__> but it already works in Java
[0:42] <__init__> and rewriting it in python might be more work
[0:42] <agronholm> couldn't you then try to just import the python code instead?
[0:42] <agronholm> I think .execfile() is ill suited to this
[0:43] <__init__> yeah
[0:43] <__init__> i'll look into that
[0:44] <agronholm> you can import modules with org.python.core.imp.load("my.python.module");
[0:44] <agronholm> this gives you a PyModule object (typecast needed)
[0:45] <agronholm> then you can invoke methods on it with .invoke()
[0:45] <agronholm> s/methods/functions/
[0:45] <agronholm> .__getattr__() is something I also use
[0:46] <__init__> ok
[0:46] <__init__> thanks for your help
[0:46] <__init__> I got to run now
[0:46] <__init__> bi
[0:58] * clajo04_ (~clajo04_@71.167.166.169) Quit (Ping timeout: 265 seconds)
[1:02] * __init__ (tim@dyn128-54-163-108.ucsd.edu) Quit (Quit: Leaving)
[1:47] * enebo (~enebo@174-20-111-148.mpls.qwest.net) Quit (Quit: enebo)
[1:57] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[2:11] * ttmrichter (~ttmrichte@111.173.72.117) has joined #jython
[3:03] * lopex (lopex@chello089076044027.chello.pl) Quit ()
[3:45] * projectmoon (~projectmo@c-68-49-168-233.hsd1.va.comcast.net) Quit (Quit: Leaving.)
[4:12] * stakkars (~tismer@i577B61C6.versanet.de) Quit (Ping timeout: 276 seconds)
[4:17] * stakkars (~tismer@i577B472D.versanet.de) has joined #jython
[4:22] * clajo04_ (~clajo04_@71.167.166.169) has joined #jython
[4:47] * BlckJsus (~cs70svn__@acs-cseb270-33.ucsd.edu) has joined #jython
[4:47] <BlckJsus> hello
[4:58] * BlckJsus is now known as BlackJezu
[4:58] * BlackJezu (~cs70svn__@acs-cseb270-33.ucsd.edu) Quit (Quit: Leaving)
[4:58] <sabi> ...
[6:19] * juneau001 (~juneau@pool-72-69-84-232.chi01.dsl-w.verizon.net) has joined #jython
[6:34] * pigletto (~quassel@109.243.204.130) has joined #jython
[7:09] * verterok (~ggonzalez@unaffiliated/verterok) Quit (Ping timeout: 240 seconds)
[7:10] * verterok (~ggonzalez@unaffiliated/verterok) has joined #jython
[7:15] * pr3d4k4t is now known as pr3d4t0r
[8:22] * verterok (~ggonzalez@unaffiliated/verterok) Quit (Ping timeout: 276 seconds)
[8:43] * Oti (~ohumbel@adsl-89-217-25-178.adslplus.ch) Quit (Quit: Oti)
[08:44] == JythonLogBot [~PircBot@adsl-89-217-25-178.adslplus.ch] has quit [Remote host closed the connection]
[09:22] == thobe [~Adium@c-4f66c384-74736162.cust.telenor.se] has joined #jython

[11:02] == ohumbel [~5390f2dc@gateway/web/freenode/x-sflzequhkgovjala] has joined #jython
[11:38] == lucian [~lucian@cpc3-benw9-2-0-cust344.gate.cable.virginmedia.com] has quit [Quit: Leaving...]
[13:15] == thobe [~Adium@c-4f66c384-74736162.cust.telenor.se] has quit [Ping timeout: 265 seconds]
[13:23] == whaley [~whaley@adsl-070-155-205-164.sip.ard.bellsouth.net] has joined #jython
[13:48] == thobe [~Adium@212-162-171-110.skbbip.com] has joined #jython
[13:53] == robbyoconnor [~wakawaka@guifications/user/r0bby] has quit [Ping timeout: 248 seconds]
[13:58] == pigletto [~quassel@109.243.204.130] has quit [Remote host closed the connection]
[14:42] == whaley [~whaley@adsl-070-155-205-164.sip.ard.bellsouth.net] has quit [Quit: :-x]
[14:56] == whaley [~whaley@adsl-070-155-205-164.sip.ard.bellsouth.net] has joined #jython
[14:56] == whaley [~whaley@adsl-070-155-205-164.sip.ard.bellsouth.net] has quit [Remote host closed the connection]
[14:56] == whaley [~whaley@adsl-070-155-205-164.sip.ard.bellsouth.net] has joined #jython
[15:03] == Kami_ [~kami@kamislo.broker.freenet6.net] has quit [Ping timeout: 268 seconds]
[15:24] == lheuer [~heuer@unaffiliated/lheuer] has joined #jython
[15:25] == stakkars_ [~tismer@i577B472D.versanet.de] has joined #jython
[15:29] == stakkars [~tismer@i577B472D.versanet.de] has quit [Ping timeout: 260 seconds]
[15:29] == stakkars_ has changed nick to stakkars
[15:56] == skay [~skay@pat1.orbitz.net] has joined #jython
[16:14] == whaley [~whaley@adsl-070-155-205-164.sip.ard.bellsouth.net] has quit [Quit: :-x]
[16:14] == enebo [~enebo@174-20-111-148.mpls.qwest.net] has joined #jython
[16:18] == verterok [~ggonzalez@unaffiliated/verterok] has joined #jython
[16:25] == Kami_ [~kami@kamislo.broker.freenet6.net] has joined #jython
[16:49] == verterok [~ggonzalez@unaffiliated/verterok] has quit [Ping timeout: 240 seconds]
[16:52] == headius [~headius@216.160.3.79] has joined #jython
[16:54] == verterok [~ggonzalez@unaffiliated/verterok] has joined #jython
[17:12] == lheuer [~heuer@unaffiliated/lheuer] has quit [Ping timeout: 260 seconds]
[17:22] == clajo04_ [~clajo04_@71.167.166.169] has quit [Ping timeout: 265 seconds]
[17:28] == lheuer [~heuer@unaffiliated/lheuer] has joined #jython
[17:36] == lheuer [~heuer@unaffiliated/lheuer] has quit [Quit: Closing Time]
[17:43] == ttmrichter [~ttmrichte@111.173.72.117] has quit [Ping timeout: 268 seconds]
[18:06] -leguin.freenode.net- *** Looking up your hostname...
[18:06] -leguin.freenode.net- *** Checking Ident
[18:06] -leguin.freenode.net- *** No Ident response
[18:06] -leguin.freenode.net- *** Found your hostname
[18:06] [frigg VERSION]
[18:06] * JythonLogBot (~PircBot@adsl-84-227-101-219.adslplus.ch) has joined #jython
[18:06] * 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'
[18:06] * Set by pjenvey!~pjenvey@underboss.org on Tue May 04 00:00:54 CEST 2010
[18:06] * Oti (~ohumbel@adsl-84-227-101-219.adslplus.ch) has joined #jython
[18:10] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[18:24] * whaley (~whaley@ec2-75-101-142-146.compute-1.amazonaws.com) has joined #jython
[18:24] * enebo (~enebo@174-20-111-148.mpls.qwest.net) Quit (Quit: enebo)
[18:28] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[18:33] * thobe (~Adium@212-162-171-110.skbbip.com) Quit (Quit: Leaving.)
[18:34] * clajo04_ (~clajo04_@71.167.166.169) has joined #jython
[19:00] * thobe (~Adium@c-4f668491-74736162.cust.telenor.se) has joined #jython
[19:06] * lucian (~lucian@cpc3-benw9-2-0-cust344.gate.cable.virginmedia.com) has joined #jython
[19:10] * lucian (~lucian@cpc3-benw9-2-0-cust344.gate.cable.virginmedia.com) Quit (Client Quit)
[19:10] * lucian (~lucian@cpc3-benw9-2-0-cust344.gate.cable.virginmedia.com) has joined #jython
[19:11] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Quit: jabley)
[19:20] * hipertracker (~hipertrac@89.167.220.4) Quit (Quit: hipertracker)
[19:37] * enebo (~enebo@216-250-174-225.static.iphouse.net) has joined #jython
[19:49] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Read error: Connection reset by peer)
[19:49] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[19:54] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Client Quit)
[19:54] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[20:00] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) has joined #jython
[20:01] * headius (~headius@216.160.3.79) has joined #jython
[20:05] * headius (~headius@216.160.3.79) Quit (Client Quit)
[20:46] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Read error: Connection reset by peer)
[20:46] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[20:53] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 265 seconds)
[20:54] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[21:32] * pigletto (~pigletto@78.8.104.137) has joined #jython
[21:33] * whaley (~whaley@ec2-75-101-142-146.compute-1.amazonaws.com) Quit (Quit: :-x)
[21:35] * pigletto_ (~pigletto@78.8.104.137) has joined #jython
[21:36] * pigletto (~pigletto@78.8.104.137) Quit (Client Quit)
[21:36] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Read error: Connection reset by peer)
[21:36] * pigletto_ is now known as pigletto
[21:36] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[21:38] * headius (~headius@216-250-174-225.static.iphouse.net) has joined #jython
[21:38] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Client Quit)
[21:39] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[21:39] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Read error: Connection reset by peer)
[21:40] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[21:40] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Read error: Connection reset by peer)
[21:40] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[21:41] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Max SendQ exceeded)
[21:42] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[21:43] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Read error: Connection reset by peer)
[21:44] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[22:04] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) Quit (Quit: jabley)
[23:50] * headius (~headius@216-250-174-225.static.iphouse.net) Quit (Quit: headius)
[23:50] * enebo (~enebo@216-250-174-225.static.iphouse.net) Quit (Quit: enebo)

Index

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