#jython IRC Log (v0.9)

Index

IRC Log for 2012-04-15

Timestamps are in GMT/BST.

[1:15] * shashank1 (~shashank@70.96.9.143) Quit (Ping timeout: 276 seconds)
[1:44] * lheuer1 (~Adium@blfd-4d08e465.pool.mediaWays.net) has joined #jython
[1:46] * lheuer (~Adium@unaffiliated/lheuer) Quit (Ping timeout: 276 seconds)
[1:56] * kuja (~kuja@unaffiliated/kuja) has joined #jython
[2:00] <kuja> Hey folks, given this simple piece of Python code (http://dpaste.org/yFwsm/), assuming 'Bar' is a Java class, how can I write this class in Java instead? Mainly the trouble I'm having is writing a PyObject subclass that "inherits" from a Java parent
[3:50] * shashank1 (~shashank@71-218-17-191.hlrn.qwest.net) has joined #jython
[5:20] * lheuer1 is now known as lheuer
[8:29] * kuja (~kuja@unaffiliated/kuja) has left #jython
[8:39] * Tiktalik is now known as Sleeptalik
[8:45] * shashank1 (~shashank@71-218-17-191.hlrn.qwest.net) Quit (Ping timeout: 240 seconds)
[14:21] * jimbaker (~jbaker@canonical/jimbaker) Quit (Ping timeout: 246 seconds)
[16:09] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[17:34] * shashank1 (~shashank@71-218-17-191.hlrn.qwest.net) has joined #jython
[18:28] <Arfrever> How to detect if Jython is running on a Linux system?
[18:32] <agronholm> System.getProperty('os.name') == 'Linux'
[18:44] <Arfrever> agronholm: System is in which module? ('import System' fails for me.)
[18:45] <agronholm> from java.lang import System
[18:45] <Arfrever> agronholm: Thanks.
[18:53] * saper (saper@wikipedia/saper) has joined #jython
[18:58] <saper> hi, does anyone know a simple way to ask SysPackageManager to read all JAR's (and maybe classes) from the .war file? Currently I have the following values in the registry: java.class.path=gerrit-war/target/gerrit-2.3-SNAPSHOT.war gerrit.jar.path=/home/saper/sw/gerrit/gerrit-war/target/gerrit-2.3-SNAPSHOT.war python.packages.paths=java.class.path,sun.boot.class.path,gerrit.jar.path
[18:58] <saper> I can "import x.y.z.x" classess from the WAR manually (because I have it on my java classpath I guess) but I can't import x.y; dir(x.y)
[19:06] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Quit: fwierzbicki)
[19:25] * shashank1 (~shashank@71-218-17-191.hlrn.qwest.net) Quit (Ping timeout: 252 seconds)
[19:31] * Sleeptalik is now known as Tiktalik
[19:35] <Arfrever> pjenvey: ping
[19:38] * juneau001 (~juneau@50-103-3-12.dklb.il.frontiernet.net) Quit (Quit: juneau001)
[19:40] <pjenvey> Arfrever - howdy
[19:41] <Arfrever> pjenvey: Do you use Linux? If yes, which version?
[19:44] <Arfrever> pjenvey: You have filed http://bugs.python.org/setuptools/issue27 and http://bugs.jython.org/issue1112
[19:46] <Arfrever> pjenvey: I think that changes introduced in https://bitbucket.org/tarek/distribute/changeset/ce145a9ffe3c could be made conditional on java.lang.System.getProperty("os.name") != "Linux"
[19:50] <saper> oh, shebang
[19:52] <pjenvey> Arfrever - have you tried disabling that workaround on linux? verifying that it works?
[19:53] <pjenvey> if so, you'd want to keep the workaround if the kernel was old
[20:15] <saper> here's the ultimate shebang guide: http://www.in-ulm.de/~mascheck/various/shebang/
[22:02] <Arfrever> pjenvey: IMHO old kernels don't need to be supported.
[22:05] <Arfrever> pjenvey: Support for scripts as interpreters in shebangs was introduced in kernel version released about 3 years 4 months ago.
[22:24] <pjenvey> Arfrever - it probably does. distribute/setuptools still support Python 2.3 IIRC
[22:24] <pjenvey> for a frame of reference, Django 1.4 just dropped support for Python 2.4. one of the big holdouts for them was RHEL 5, which only included Python 2.4
[22:25] <pjenvey> RHEL5 is 2.6.18
[22:25] <pjenvey> Django is really on conservative side for maintaing support for older systems, but distribute/setuptools are so integral that they're probably even more conservative
[23:13] * jcowan (~John@mail.digitalkingdom.org) has joined #jython
[23:14] <jcowan> Where do I find the information about how many of the standard Python modules don't work on the latest release of Jython?
[23:25] <pjenvey> jcowan - i don't think there's a definitive list (I think there was a long time ago)
[23:26] <jcowan> Can you guesstimate? Is it just a few missing, or half, or most of it? (Excluding redundant things like cPickle, of course.)
[23:26] <pjenvey> you could take a look at CPythonLib.includes I guess in the root dir
[23:26] * jcowan nods.
[23:26] <pjenvey> that doesn't include builtins though
[23:26] <pjenvey> I'd say most of it is supported
[23:26] <pjenvey> (in 2.5)
[23:26] <jcowan> I basically just need to know if people should expect their CPython programs to port fairly easily.
[23:27] <pjenvey> yes (depending on what you're doing of course, YMMV). but in general, yes =]
[23:27] <jcowan> Thanks.
[23:27] <jcowan> I have asked in #ironpython but got no reply. Do you know what things look like there?
[23:28] <pjenvey> Django works on jython for example
[23:28] <pjenvey> AFAIK IronPython isn't quite as compatible w/ CPython as Jython. unless you really need > Python 2.5 support, IronPython is up to 2.7
[23:29] <pjenvey> jython's stable release is still stuck at 2.5
[23:29] * jcowan nods.
[23:29] <jcowan> Thanks.
[23:34] * Tiktalik is now known as Tiktalik|FOOOOOO
[23:34] * Tiktalik|FOOOOOO is now known as Tiktalik|Food
[23:46] * jcowan (~John@mail.digitalkingdom.org) has left #jython

Index

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