#jython IRC Log (v0.9)

Index

IRC Log for 2012-07-13

Timestamps are in GMT/BST.

[0:27] * enebo (~enebo@174-20-178-12.mpls.qwest.net) has joined #jython
[0:35] * jimbaker` (~jbaker@c-75-71-80-146.hsd1.co.comcast.net) has joined #jython
[0:38] * jimbaker (~jbaker@canonical/jimbaker) Quit (Ping timeout: 264 seconds)
[0:50] * enebo (~enebo@174-20-178-12.mpls.qwest.net) Quit (Quit: enebo)
[1:33] * vayer (~vayer@173-164-129-225-SFBA.hfc.comcastbusiness.net) Quit (Quit: Leaving)
[1:56] * aquarius1973 (~aquarius1@egress-frr.sf.nat.aol.com) Quit (*.net *.split)
[1:56] * fvox13 (~stevensmi@173-45-242-243.slicehost.net) Quit (*.net *.split)
[1:56] * svenn_ (svenn@invalid.ed.ntnu.no) Quit (*.net *.split)
[1:56] * yanne (~jth@backport.reaktor.fi) Quit (*.net *.split)
[2:15] * aquarius1973 (~aquarius1@egress-frr.sf.nat.aol.com) has joined #jython
[2:15] * fvox13 (~stevensmi@173-45-242-243.slicehost.net) has joined #jython
[2:15] * svenn_ (svenn@invalid.ed.ntnu.no) has joined #jython
[2:15] * yanne (~jth@backport.reaktor.fi) has joined #jython
[6:22] * int3__ (~int3__@99-119-64-75.lightspeed.sntcca.sbcglobal.net) has joined #jython
[6:29] * int3__ (~int3__@99-119-64-75.lightspeed.sntcca.sbcglobal.net) Quit (Remote host closed the connection)
[6:50] * Epona (~Angel@cpe-24-208-141-92.insight.res.rr.com) has joined #jython
[7:21] * Angel_ (~Angel@cpe-24-208-141-92.insight.res.rr.com) has joined #jython
[7:23] * Epona (~Angel@cpe-24-208-141-92.insight.res.rr.com) Quit (Ping timeout: 246 seconds)
[8:49] * Angel_ (~Angel@cpe-24-208-141-92.insight.res.rr.com) Quit (Read error: Connection reset by peer)
[10:07] * int3___ (~int3__@99-119-64-75.lightspeed.sntcca.sbcglobal.net) has joined #jython
[10:10] * int3___ (~int3__@99-119-64-75.lightspeed.sntcca.sbcglobal.net) Quit (Remote host closed the connection)
[10:25] * clajo04_ (~clajo04_@pool-74-108-95-112.nycmny.fios.verizon.net) Quit (Quit: clajo04_)
[11:17] * juneau001 (~juneau@131.225.24.164) has joined #jython
[12:06] * wainersm (~wainersm@189.61.217.121) has joined #jython
[12:16] * clajo04_ (~clajo04_@pool-74-108-95-112.nycmny.fios.verizon.net) has joined #jython
[13:19] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 246 seconds)
[14:21] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[14:22] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[15:53] * int3__ (~int3__@99-119-64-75.lightspeed.sntcca.sbcglobal.net) has joined #jython
[15:54] * int3__ (~int3__@99-119-64-75.lightspeed.sntcca.sbcglobal.net) Quit (Remote host closed the connection)
[15:54] * int3__ (~int3__@99-119-64-75.lightspeed.sntcca.sbcglobal.net) has joined #jython
[15:58] * jimbaker` is now known as jimbaker
[16:20] * ctismer_afk is now known as ctismer
[16:22] * ctismer is now known as ctismer_afk
[17:07] * Trundle (~andy@python/site-packages/trundle) has joined #jython
[17:38] * int3__ (~int3__@99-119-64-75.lightspeed.sntcca.sbcglobal.net) Quit (Remote host closed the connection)
[18:13] * juneau001_ (~juneau@fess-116326.dhcp.fnal.gov) has joined #jython
[18:13] * juneau001 (~juneau@131.225.24.164) Quit (Read error: Connection reset by peer)
[18:13] * juneau001_ is now known as juneau001
[18:29] * enebo (~enebo@174-20-178-12.mpls.qwest.net) has joined #jython
[18:34] * ctismer_afk is now known as ctismer
[18:54] * enebo (~enebo@174-20-178-12.mpls.qwest.net) Quit (Quit: enebo)
[19:14] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[19:27] * vayer (~vayer@173-164-129-225-SFBA.hfc.comcastbusiness.net) has joined #jython
[19:32] * juneau001 (~juneau@fess-116326.dhcp.fnal.gov) Quit (Quit: juneau001)
[20:42] <Arfrever> fwierzbicki: When Jython starts targetting Python 2.7.4, then Lib/compiler/pycodegen.py again will have to be modified.
[20:43] <fwierzbicki> Arfrever: ok - good to know. We'll probably target 2.7.4 before a final release
[20:44] <Arfrever> fwierzbicki: Because http://bugs.python.org/issue15212 has been fixed in 2.7.4.
[20:45] <Arfrever> fwierzbicki: You forgot to close issues #1920 and #1921.
[20:45] <fwierzbicki> Arfrever: I did indeed
[20:46] <agronholm> what's the status of 2.7 now?
[20:48] <agronholm> if you're getting ready to drop a release, I'll probably need to get off my ass and get that _json module in
[20:48] <fwierzbicki> I'm hoping I'm close to a beta release - but there will be multiple betas - it's definitely not release worthy yet.
[20:48] <fwierzbicki> agronholm: heh
[20:48] <fwierzbicki> agronholm: it's definitely entering polishing time - but a final release is not right around the corner
[20:49] <Arfrever> fwierzbicki: The same 'template = new DecimalFormat("#,##0.#####");' line is in src/org/python/core/stringlib/Formatter.java
[20:49] <agronholm> a new beta would be great
[20:49] <agronholm> I could resume testing with my ERP app
[20:49] <agronholm> that import issue totally blocked that
[20:49] <fwierzbicki> agronholm: Jeff Allen (our newest committer) is working on a buffer API - I'm inclined to want it in for a release
[20:49] <agronholm> sure
[20:50] <Arfrever> fwierzbicki: When is code from this file used?
[20:51] <fwierzbicki> Arfrever I will check - if it looks like it would interfere with i18n (which is probably the case) I will fix it too.
[20:51] <fwierzbicki> agronholm: cool - you are always a good source of bug reports :)
[20:51] <Arfrever> fwierzbicki: There is also PercentageFormatTemplate.
[20:51] <agronholm> heh
[21:01] <Arfrever> fwierzbicki: Please show results:
[21:01] <Arfrever> LC_ALL="en_US.UTF-8" jython2.7 -c 'print(1.0.__format__("f"))'
[21:01] <Arfrever> LC_ALL="pl_PL.UTF-8" jython2.7 -c 'print(1.0.__format__("f"))'
[21:01] <fwierzbicki> Arfrever: sorry - work stuff in the way ATM
[21:32] * wainersm (~wainersm@189.61.217.121) Quit (Quit: Ex-Chat)
[21:34] <fwierzbicki> Arfrever: I get 1.000000 for the first and 1,000000 for the second so that sounds like the above is a bug that also needs fixing
[21:34] <Arfrever> fwierzbicki: I can test a patch if you are busy.
[21:35] <Arfrever> fwierzbicki: In src/org/python/core/stringlib/Formatter.java
[21:35] <fwierzbicki> that's ok - the fix is trivial - I was just busy when you first asked :)
[21:36] * wainersm (~wainersm@189.61.217.121) has joined #jython
[21:37] <Arfrever> fwierzbicki: `LC_ALL="pl_PL.UTF-8" jython2.7 -c 'print(1.0.__format__("%"))'` probably shows a bug in PercentageFormatTemplate.
[21:37] <fwierzbicki> I fixed that too - I'll push the fixed version shortly
[21:37] <Arfrever> CPython always prints 100.000000%
[21:38] <fwierzbicki> Arfrever: thanks for reporting these!
[21:40] * wainersm (~wainersm@189.61.217.121) Quit (Client Quit)
[21:40] <Arfrever> fwierzbicki: With these changes, does `LC_ALL="pl_PL.UTF-8" jython2.7 -c 'open("/dev/null", "w")'` still fail?
[21:42] <fwierzbicki> It looks like it's ok now - did it throw an exception before?
[21:42] <Arfrever> fwierzbicki: See http://bugs.jython.org/issue1944
[21:43] <Arfrever> fwierzbicki: In pl_PL locale, it was "IOError: Z?y argument".
[21:44] * varialus (cfe0d5b3@gateway/web/freenode/ip.207.224.213.179) has joined #jython
[21:44] <Arfrever> fwierzbicki: Also this message is malformed. "bad" / "evil" in Polish language is "z??y", not "z?y".
[21:45] <fwierzbicki> Arfrever: hmmm - I'm not able to reproduce that particular problem on my system - it does nothing (but also does nothing on older builds)
[21:46] <fwierzbicki> In this case it would probably be better for you to try it with the latest fixes
[21:46] <fwierzbicki> they're all pushed now
[21:46] <Arfrever> fwierzbicki: OK. I will update Jython.
[21:47] <fwierzbicki> OK, let me know how it goes!
[21:50] <Arfrever> fwierzbicki: You could also commit my patches for issue #1905.
[21:50] <fwierzbicki> Arfrever: yep - just need to get to them :)
[21:51] <fwierzbicki> I agree with that patch - I just need to test carefully
[21:51] <varialus> What kind of licenses are the Jython license compatible with? I'd like to hack on it a bit, but don't want to pull from anything that can't be included. Is MIT ok? PyPy is MIT, so that's of particular interest to me.
[21:58] <varialus> Never mind. I think I found info on it.
[22:05] <Arfrever> fwierzbicki: Issue #1944 still occurs.
[22:06] <fwierzbicki> varialus: MIT is ok
[22:06] <fwierzbicki> It's the same license as Python
[22:06] <fwierzbicki> which is an ugly license but is basically BSD style
[22:06] <varialus> Great! Policy-wise, what kind of dependencies are allowed?
[22:07] <fwierzbicki> varialus: we've permitted a lot of jars - but things are getting a bit big -
[22:07] <fwierzbicki> varialus: we can't do GPL
[22:07] <fwierzbicki> otherwise it's case by case
[22:09] <varialus> Gotcha. The only thing I've encountered that I'd need a jar for is the socket module/package. Nothing that I have depends on it changing, but since I encountered it, I thought I'd take a look at it.
[22:09] <varialus> It would basically just make some other Python software work without having to make a minor change.
[22:09] <fwierzbicki> Arfrever: that's an odd one - probably not as easy to fix as the others
[22:10] <fwierzbicki> varialus: ah ok - if you have some interesting findings about socket - it would be good to mention it on the jython-dev list. Our socket guy does not follow our IRC list
[22:11] <fwierzbicki> varialus: or put something up at http://bugs.jython.org -- he checks there too
[22:11] <varialus> It was nothing serious, just an implementation difference that's probably not going to change unless somebody has an itch, which I kind of do.
[22:12] <varialus> I'm more interested in trying to build PyPy.
[22:17] <fwierzbicki> varialus: building PyPY can be quite tough :)
[22:18] <varialus> I've got to go, but I'm about to make some forks. I think I want my Jython fork to focus on Python compatibility and my PyPy fork to focus on being compiled by Jython.
[22:18] <varialus> Nothing serious, just for fun. Java is a lot more approachable to me than C++.
[22:19] <varialus> Err, C
[22:20] <agronholm> C++ isn't approachable to anyone
[22:21] <Arfrever> fwierzbicki: In Java code, how to check if a PyObject object is an instance of new-style class?
[22:21] <varialus> Woot! Got me a fork! https://bitbucket.org/varialus/jython but I've got to go for a while. Later.
[22:31] <fwierzbicki> Arfrever: one way is "o instanceof PyInstance"
[22:32] <fwierzbicki> PyInstance is an old style class
[22:33] <Arfrever> fwierzbicki: How to regenerate files created from src/templates/object.derived?
[22:33] * ctismer is now known as ctismer_afk
[22:34] <fwierzbicki> Arfrever: "ant template"
[22:34] * Epona (~Angel@cpe-24-208-141-92.insight.res.rr.com) has joined #jython
[22:35] <fwierzbicki> if you want it to regenerate everything I think you have to modify build.xml
[22:35] <Epona> any idea how to get pip working on jython?
[22:35] <Epona> a tutorial is asking me to use it, but search results seem scarce
[22:35] <fwierzbicki> Epona: it should just work
[22:35] <Epona> oh you mean jython comes with it?
[22:35] <fwierzbicki> download it, run "jython setup.py install"
[22:36] <Epona> oh I see
[22:36] <fwierzbicki> Epona: it doesn't work with *everything* but I'm sure pip works :)
[22:37] <fwierzbicki> Arfrever - to get a full rebuild of the templates -- change "templates.lazy" to false in build.xml
[22:39] <Arfrever> fwierzbicki: I will try with templates.lazy=false in ant.properties.
[22:39] <fwierzbicki> Arfrever: that should work yet
[22:39] <fwierzbicki> yes
[22:40] <fwierzbicki> Arfrever: in fact that is better - I have some sloppy habits that I shouldn't be suggesting :)
[22:41] * ctismer_afk is now known as ctismer
[22:42] <Arfrever> fwierzbicki: "o instanceof PyInstance" will be false for other objects?
[22:43] <Arfrever> E.g. integers, strings etc.
[22:44] <Epona> no module named setuptools
[22:45] <Arfrever> Epona: So install setuptools or distribute.
[22:45] <Epona> I'll get to it
[22:45] <Arfrever> Epona: Distribute is a fork of Setuptools. Both Distribute and Setuptools projects provide "setuptools" module.
[22:46] <Epona> oh ok
[22:51] <Epona> and now this needs another module
[22:51] <Epona> this is fun
[22:51] <Arfrever> fwierzbicki: What is coding style about initial whitespace in Java code in Jython?
[22:52] <agronholm> huh?
[22:52] <Arfrever> fwierzbicki: 2 spaces, 4 spaces or tabs?
[22:53] <agronholm> Arfrever: java code in jython??
[22:53] <agronholm> what do you mean by that
[22:53] <Arfrever> agronholm: find src -name "*.java"
[22:54] <agronholm> I think the official java style uses 4 spaces too
[22:57] <pjenvey> http://wiki.python.org/jython/CodingStandards
[22:58] <agronholm> ahh I finally understood
[22:58] * ctismer is now known as ctismer_afk
[22:58] <agronholm> Java code style in the Jython project itself
[22:58] * ctismer_afk is now known as ctismer
[23:09] * ctismer is now known as ctismer_afk
[23:34] * varialus (cfe0d5b3@gateway/web/freenode/ip.207.224.213.179) Quit (Quit: Page closed)
[23:35] * varialus (cfe0d5b3@gateway/web/freenode/ip.207.224.213.179) has joined #jython
[23:42] <Epona> this is really a cataclysmic error
[23:44] <Epona> ah
[23:44] <Epona> found something that might ease my pain for one I get back from my other job
[23:44] <Epona> Jython ElementTree relies on Jython 2.5 in several ways (including the improved
[23:44] <Epona> unicode handling) and distutils is a part of the standard Jython 2.5 distribution.
[23:47] <Epona> if anyone knows how to yum install jython 2.5
[23:47] <Epona> that'd be great
[23:49] <Epona> maybe there's an OS out there with it?
[23:53] <agronholm> ubuntu? :)
[23:53] <Epona> yea I'll try that after centos 6.2
[23:53] <Epona> ubuntu always seems to stay ahead of the game
[23:53] <Epona> 2 minutes before I leave now
[23:53] <agronholm> it's 2.5.1 though, not the latest one
[23:54] <agronholm> iirc 2.5.1 had some nasties in it
[23:54] <Epona> 2.5 or later is all I need for this apparently

Index

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