#jython IRC Log (v0.9)

Index

IRC Log for 2010-12-20

Timestamps are in GMT/BST.

[0:24] * biterader (big_al@186.88.227.172) has joined #jython
[0:26] * lheuer (~heuer@unaffiliated/lheuer) Quit (Quit: Closing Time)
[0:27] * bitreader (big_al@186.88.227.172) Quit (Ping timeout: 240 seconds)
[0:52] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[1:59] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 240 seconds)
[3:24] * 16SAAUE1V (~tismer@77-21-85-35-dynip.superkabel.de) Quit (Quit: hasta la vista)
[3:52] * diegao (~quassel@189.83.248.182) Quit (Ping timeout: 272 seconds)
[6:38] * thobe (~Adium@c83-249-247-186.bredband.comhem.se) Quit (Quit: Leaving.)
[7:15] * thobe (~Adium@212-162-171-110.skbbip.com) has joined #jython
[7:38] * Oti (5390f2dc@gateway/web/freenode/ip.83.144.242.220) has joined #jython
[8:21] * seberg (~sebastian@134.76.0.204) has joined #jython
[9:06] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[9:58] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) has joined #jython
[10:43] * seberg (~sebastian@134.76.0.204) Quit (Quit: Ex-Chat)
[11:07] * MarderIII (~marderii@enneman.demon.nl) has joined #jython
[11:09] * MarderIII (~marderii@enneman.demon.nl) Quit (Client Quit)
[11:50] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Remote host closed the connection)
[11:51] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) has joined #jython
[12:20] * seberg (~sebastian@134.76.218.252) has joined #jython
[12:26] * seberg (~sebastian@134.76.218.252) Quit (Quit: Ex-Chat)
[12:45] * seberg (~sebastian@134.76.218.252) has joined #jython
[13:32] * Oti (5390f2dc@gateway/web/freenode/ip.83.144.242.220) Quit (Quit: Page closed)
[14:17] * thijstriemstra (~thijstrie@2002:5450:63c5:1234:219:e3ff:fed6:8355) has joined #jython
[14:51] * stakkars_ (~tismer@p5DCE2C80.dip.t-dialin.net) has joined #jython
[15:00] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[15:22] * stakkars_ (~tismer@p5DCE2C80.dip.t-dialin.net) Quit (Quit: stakkars_)
[15:48] * jbaker (~jimbaker@c-24-8-39-78.hsd1.co.comcast.net) has joined #jython
[16:23] * MarderIII (~marderii@enneman.demon.nl) has joined #jython
[16:46] * thobe (~Adium@212-162-171-110.skbbip.com) Quit (Quit: Leaving.)
[16:49] * verterok (~ggonzalez@190.188.220.52) has joined #jython
[16:49] * verterok (~ggonzalez@190.188.220.52) Quit (Changing host)
[16:49] * verterok (~ggonzalez@unaffiliated/verterok) has joined #jython
[16:51] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Quit: jabley)
[17:11] * srcerer (~chatzilla@dns2.klsairexpress.com) has joined #jython
[17:23] * bimbo (~emerino@poseidon.etesa.com.mx) has joined #jython
[17:26] <bimbo> hello, I'm trying the jython compiler PythonInterpreter#compile(), however I would like to instantiate my python classes from java using a ClassLoader, how can I do this?
[17:27] <jbaker> bimbo: you really need to use our class loader process for such classes
[17:27] <bimbo> I see the .class file generated, but if I try to class using a classloader like: cl.loadClass("my.package.my_module$py"); it'll throw an error
[17:27] <bimbo> jbaker: hmm the thing is, I would like to store some of these jython objects in an object db (neodatis)
[17:28] <bimbo> for this to work, it needs to know the class
[17:28] <bimbo> what other options do I have?
[17:29] <jbaker> bimbo: sure. but you will have to use jython's existing classloader support.
[17:29] <jbaker> there are other potential workarounds, but you really want clamp, which is not being actively worked on right now
[17:32] <bimbo> jbaker: hmmm what other potential workarounds may I use, since clamp is not ready yet?
[17:32] <jbaker> something like jsr223 or an object factory
[17:33] <jbaker> but you won't be managing class files, but the *.py files
[17:33] * thijstriemstra (~thijstrie@2002:5450:63c5:1234:219:e3ff:fed6:8355) Quit (Quit: thijstriemstra)
[17:33] <bimbo> jbaker: ah yeah, jython's jsr223 implementation is not ready yet for production yet (there's a bug I've discussed here before), but using object factories I'll have to relay on PyObjects right?
[17:34] <jbaker> bimbo: might be better to try to fix the bug?
[17:35] <jbaker> the other alternative is to use the existing classloader support as i mentioned earlier. i don't know how much work it would take to fit it in to what you're doing, but might be interesting
[17:36] <bimbo> jbaker: hmm ok, I'll play around with the possibilites and see what works best, thank you very much
[17:37] <jbaker> take a look at org.python.core.BytecodeLoader
[17:37] <jbaker> pretty small, might be what you're interested in doing. certainly it's at about the right point to instrument
[17:44] <agronholm> is rc3 any closer than it was two weeks ago?
[17:45] * thobe (~Adium@c83-249-247-186.bredband.comhem.se) has joined #jython
[17:49] <jbaker> agronholm: i don't believe anyone has been working on it
[17:49] <agronholm> :(
[17:49] <jbaker> right now everyone seems super busy, myself included
[17:54] <ohumbel> agronholm - i did partly, but much less i'd planned to, and with no usable results yet
[17:55] <agronholm> I bet everyone will be more motivated once the 2.5 series can be put to rest
[17:58] <jbaker> agronholm: almost certainly that's the case. but the most important thing is just to have some solid time to work on these bugs
[18:10] * jbaker (~jimbaker@c-24-8-39-78.hsd1.co.comcast.net) Quit (Read error: Connection reset by peer)
[18:10] * jbaker (~jimbaker@c-24-8-39-78.hsd1.co.comcast.net) has joined #jython
[18:29] * seberg (~sebastian@134.76.218.252) Quit (Quit: Ex-Chat)
[18:47] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 240 seconds)
[18:49] * lolsuper_ (~super_@pool-173-78-145-82.tampfl.fios.verizon.net) has joined #jython
[18:49] * lolsuper_ (~super_@pool-173-78-145-82.tampfl.fios.verizon.net) Quit (Changing host)
[18:49] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[19:08] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[19:40] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Read error: Connection reset by peer)
[19:40] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[19:57] * lopex (lopex@89-76-44-27.dynamic.chello.pl) has joined #jython
[20:37] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 240 seconds)
[20:48] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[21:03] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[21:22] * quizme (~quizme@66.43.117.226) has joined #jython
[21:24] <quizme> how do you get to import a file that you wrote when the file that you're running (which has "import myapp" lies inside a directory, say, ./test/?
[21:25] <quizme> know what i mean ?
[21:26] <quizme> i'm getting "ImportError: No module named x"
[21:27] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 240 seconds)
[21:27] <quizme> the command i ran was: jython test/test_math.py
[21:27] <quizme> and inside test_math.py is "import x"
[21:27] <quizme> x.py is in the current directory
[21:28] <quizme> python test/test_math.py doesn't give me that error though.
[21:37] <jbaker> quizme: you're using jython 2.5?
[21:37] <pjenvey> pretty sure cpython would give you the same error there.
[22:04] * njoyce (~njoyce@124-150-89-44.dyn.iinet.net.au) has joined #jython
[22:11] * MarderIII (~marderii@enneman.demon.nl) Quit (Quit: leaving)
[22:19] <quizme> jbaker: Jython 2.5.2rc2 (Release_2_5_2rc2:7167, Oct 24 2010, 22:48:30)
[22:19] <quizme> pjenvey: cpython doesn't give an error there.
[22:19] <jbaker> quizme: in general - anything simple like this should work the same for cpython - there's pretty extensive coverage in the standard tests we share with cpython
[22:20] <jbaker> but you might have found something here
[22:20] <jbaker> if you can submit a test case - ideally written using python's unittest, we can take a look
[22:26] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[22:26] <quizme> ok
[22:33] <quizme> i don't know how to make a test that assert that an exception is not raised when jython is run at the command line
[22:34] <jbaker> quizme: you could use subprocess
[22:36] <jbaker> is the actual problem in running from the command line however?
[22:45] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[22:46] <pjenvey> quizme - http://pylonshq.com/pasties/a1917581169d07ddf594a92679c9daff isn't that what you're describing? doesn't work for me in cpython
[22:53] <pjenvey> I'd check your sys.path to see what's going on. also make sure your x module is coming from where you expect -- import x; print x.__file__
[23:27] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[23:35] * verterok (~ggonzalez@unaffiliated/verterok) Quit (Ping timeout: 260 seconds)
[23:54] <quizme> pjenvey: yes that the problem I'm describing.

Index

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