#jython IRC Log (v0.9)

Index

IRC Log for 2010-10-06

Timestamps are in GMT/BST.

[0:04] * lopex (lopex@chello089076044027.chello.pl) Quit ()
[1:29] * ssh_rdp (~sradpo@soy.CS.McGill.CA) has joined #jython
[1:30] <ssh_rdp> hey guys, just a quick question, how can I import a module named 'ast' from a jar file I have. "import ast" imports the built-in ast module.
[1:31] <agronholm> is that a python module
[1:31] <ssh_rdp> the jar file is java project
[1:31] <agronholm> so are you trying to import a java package?
[1:31] <ssh_rdp> it's in class path, I can import other packages
[1:31] <agronholm> and not a class
[1:32] <ssh_rdp> yes
[1:32] <ssh_rdp> sorry
[1:32] <agronholm> you shouldn't do that generally
[1:32] <ssh_rdp> I can import other packages in that jar
[1:32] <ssh_rdp> why not?
[1:32] <agronholm> sure, just saying that you should import classes, not packages
[1:32] <agronholm> because support for java package import is a hack
[1:32] <agronholm> and prevents the python.cachedir=False startup optimization
[1:32] <ssh_rdp> import ast.ASTNode also fails
[1:33] <agronholm> yeah, just saying
[1:33] <agronholm> that is not the problem you are having, just pointing it out
[1:33] <ssh_rdp> how can I import classes
[1:33] <agronholm> like, from ast import ASTNode?
[1:33] <agronholm> accessing classes through their full package names is a pain in arse
[1:34] <ssh_rdp> that fails too
[1:34] <agronholm> sure, like I said, that is not the problem at hand
[1:34] <ssh_rdp> aha, ok
[1:34] <ssh_rdp> I tried to get rid of ast.py in Lib but that didn't help
[1:35] <agronholm> well that is odd
[1:35] <agronholm> what does it import then
[1:35] <ssh_rdp> the ast. I think there is a java version of it in jython source
[1:35] <agronholm> that would be _ast
[1:36] <ssh_rdp> oh, you are right, it was importing ast$py.class
[1:36] <ssh_rdp> thanks
[1:37] <ssh_rdp> it's working now
[1:37] <agronholm> java packages typically start with com.company.xxx
[1:37] <ssh_rdp> not if they are written by python programmers :P
[1:38] * juneau001 (~juneau@pool-72-69-212-121.chi01.dsl-w.verizon.net) has joined #jython
[1:39] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[1:58] * Ademan (~dan@adsl-75-55-220-243.dsl.pltn13.sbcglobal.net) Quit (Quit: leaving)
[2:12] * thobe (~Adium@ip65-46-231-74.z231-46-65.customer.algx.net) has joined #jython
[3:11] * thobe (~Adium@ip65-46-231-74.z231-46-65.customer.algx.net) Quit (Quit: Leaving.)
[3:28] * lopex (lopex@chello089076044027.chello.pl) Quit ()
[3:47] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) has joined #jython
[3:59] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[4:07] * thobe (~Adium@c-24-130-144-225.hsd1.ca.comcast.net) has joined #jython
[4:40] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) Quit (Quit: jimbaker)
[7:16] * seberg (~sebastian@vpn-3053.gwdg.de) has joined #jython
[7:16] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[8:32] * seberg (~sebastian@vpn-3053.gwdg.de) Quit (Quit: Ex-Chat)
[8:33] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Ping timeout: 252 seconds)
[9:27] * KeeperOfTheSoul_ (~chris@about/csharp/regular/KeeperOfTheSoul) has joined #jython
[9:30] * KeeperOfTheSoul (~chris@about/csharp/regular/KeeperOfTheSoul) Quit (Ping timeout: 276 seconds)
[9:32] * cmoman (~cmoman@73.246.69.111.dynamic.snap.net.nz) has joined #jython
[9:47] * seberg (~sebastian@134.76.218.194) has joined #jython
[9:47] * Imek (~joe@195.188.251.108) has joined #jython
[9:55] * juneau001 (~juneau@pool-72-69-212-121.chi01.dsl-w.verizon.net) Quit (Quit: juneau001)
[9:58] * adiroiban (~adiroiban@89.137.108.176) has joined #jython
[9:59] <adiroiban> Hi, I would like to deploy a Jython application on a read only file system. Will it work if I will copy all the $py.class generated after running the full test suite?
[10:04] * cmoman (~cmoman@73.246.69.111.dynamic.snap.net.nz) Quit (Ping timeout: 264 seconds)
[10:08] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 272 seconds)
[10:37] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[10:37] * seberg (~sebastian@134.76.218.194) Quit (Quit: Ex-Chat)
[10:45] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[11:12] * juneau001 (~juneau@FESS-116326-2347076-dp.dhcp.fnal.gov) has joined #jython
[11:16] * pr3d4t0r (~cu4cu4@varenka.cime.net) has joined #jython
[11:37] * seberg (~sebastian@134.76.218.194) has joined #jython
[13:18] <agronholm> yes, as long as you use the sama java and jython versions and set python.cachedir=false
[13:26] * Imek (~joe@195.188.251.108) Quit (Quit: Leaving)
[13:32] * KeeperOfTheSoul (~chris@about/csharp/regular/KeeperOfTheSoul) has joined #jython
[13:34] * KeeperOfTheSoul_ (~chris@about/csharp/regular/KeeperOfTheSoul) Quit (Ping timeout: 252 seconds)
[13:44] <adiroiban> agronholm: thanks
[13:48] <agronholm> if you want to compile all .py files to .class, you can do jython -m compileall .
[13:50] * Imek (~joe@195.188.251.108) has joined #jython
[14:04] * stever (~stever@dsl78-143-230-39.in-addr.fast.co.uk) has joined #jython
[14:09] <adiroiban> agronholm: so basically importing all modules should trigger the .class generation ?
[14:09] <agronholm> yeah but directly compiling them all is faster and avoids any side effects
[14:18] <adiroiban> thanks. I am looking into the compileall module
[14:23] * lheuer (~heuer@unaffiliated/lheuer) Quit (Read error: Connection reset by peer)
[14:25] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[14:38] * skay (~skay@pat1.orbitz.net) has joined #jython
[15:01] * lheuer (~heuer@unaffiliated/lheuer) Quit (Read error: Connection reset by peer)
[15:04] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[15:24] * stever (~stever@dsl78-143-230-39.in-addr.fast.co.uk) Quit (Quit: Leaving)
[15:28] * stever (~stever@dsl78-143-230-39.in-addr.fast.co.uk) has joined #jython
[15:32] * thobe (~Adium@c-24-130-144-225.hsd1.ca.comcast.net) Quit (Quit: Leaving.)
[15:41] * enebo (~enebo@184-97-208-251.mpls.qwest.net) has joined #jython
[15:54] * lheuer (~heuer@unaffiliated/lheuer) Quit (Read error: Connection reset by peer)
[15:56] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[16:03] * lheuer (~heuer@unaffiliated/lheuer) Quit (Read error: Connection reset by peer)
[16:03] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[16:08] * lheuer (~heuer@unaffiliated/lheuer) Quit (Client Quit)
[16:26] * stever (~stever@dsl78-143-230-39.in-addr.fast.co.uk) Quit (Quit: Leaving)
[16:32] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[16:35] * thobe (~Adium@c-24-130-144-225.hsd1.ca.comcast.net) has joined #jython
[16:45] * thobe (~Adium@c-24-130-144-225.hsd1.ca.comcast.net) Quit (Quit: Leaving.)
[17:41] * Imek (~joe@195.188.251.108) Quit (Quit: Leaving)
[18:00] * seberg (~sebastian@134.76.218.194) Quit (Quit: Ex-Chat)
[19:21] * juneau001 (~juneau@FESS-116326-2347076-dp.dhcp.fnal.gov) Quit (Quit: juneau001)
[20:09] * lopex (lopex@chello089076044027.chello.pl) Quit ()
[21:07] * jimbaker (~jbaker@64.134.68.109) has joined #jython
[21:13] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[21:13] * skay (~skay@pat1.orbitz.net) Quit (Quit: skay)
[22:11] * jimbaker (~jbaker@64.134.68.109) Quit (Quit: jimbaker)
[22:12] * stakkars (~tismer@i577B495D.versanet.de) Quit (Ping timeout: 240 seconds)
[22:19] * stakkars (~tismer@i577B69FC.versanet.de) has joined #jython
[23:51] * PU5PER (~peretto@189.58.64.62.dynamic.adsl.gvt.net.br) has joined #jython
[23:52] * PU5PER is now known as plankton

Index

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