#jython IRC Log (v0.9)

Index

IRC Log for 2010-07-12

Timestamps are in GMT/BST.

[0:17] * juneau001 (~juneau@pool-72-69-199-113.chi01.dsl-w.verizon.net) Quit (Quit: juneau001)
[2:09] * linkmaster03 (brado@unaffiliated/linkmaster03) has joined #jython
[2:39] * linkmaster03 (brado@unaffiliated/linkmaster03) Quit (Quit: night - bonan nokton)
[3:05] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) has joined #jython
[4:04] * ttmrichter (~ttmrichte@59.175.37.155) Quit (Read error: Connection timed out)
[4:05] * ttmrichter (~ttmrichte@59.175.37.155) has joined #jython
[4:59] * pigletto (~quassel@109.243.229.228) has joined #jython
[5:21] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[5:46] * rcaskey (~rcaskey@dumbledore.athenshousing.org) Quit (*.net *.split)
[6:15] * lheuer (~heuer@blfd-4d086c54.pool.mediaWays.net) has joined #jython
[6:33] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) has joined #jython
[6:41] * lheuer (~heuer@blfd-4d086c54.pool.mediaWays.net) Quit (Ping timeout: 265 seconds)
[6:42] * lheuer (~heuer@blfd-4d08fb72.pool.mediaWays.net) has joined #jython
[6:46] * thobe (~Adium@212-162-171-110.skbbip.com) has joined #jython
[7:02] * pigletto (~quassel@109.243.229.228) Quit (Ping timeout: 240 seconds)
[7:19] * pigletto (~quassel@109.243.183.224) has joined #jython
[7:23] * lheuer (~heuer@blfd-4d08fb72.pool.mediaWays.net) Quit (Ping timeout: 265 seconds)
[7:25] * lheuer (~heuer@217.191.4.4) has joined #jython
[7:49] * rcaskey (~rcaskey@dumbledore.athenshousing.org) has joined #jython
[8:05] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) Quit (Quit: jabley)
[8:09] * ttmrichter (~ttmrichte@59.175.37.155) Quit (Quit: ...and I'm taking my ball with me!)
[8:10] * lheuer (~heuer@217.191.4.4) Quit (Ping timeout: 246 seconds)
[8:23] * ttmrichter (~ttmrichte@59.175.37.155) has joined #jython
[8:44] * mds1 (~seiler@131.220.126.195) has joined #jython
[8:44] * mds1 (~seiler@131.220.126.195) has left #jython
[8:46] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) has joined #jython
[9:22] * pigletto_ (~quassel@109.243.34.79) has joined #jython
[9:23] * pigletto (~quassel@109.243.183.224) Quit (Ping timeout: 245 seconds)
[9:43] * hpk (~hpk@HSI-KBW-085-216-105-248.hsi.kabelbw.de) has joined #jython
[10:02] <agronholm> anyone know who is "otmarhumbel" in Jython SVN? I'm trying to track down whoever made the cPickle module.
[10:18] <agronholm> specifically, I need to know why I cannot set the "find_global" attribute on a cPickle.Unpickler
[10:49] * pigletto_ (~quassel@109.243.34.79) Quit (Remote host closed the connection)
[10:50] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) has joined #jython
[10:51] <jabley> agronholm: try ohumbel in here?
[10:52] * lucian_ (~lucian@188-222-55-189.zone13.bethere.co.uk) Quit (Ping timeout: 264 seconds)
[10:52] <agronholm> ah
[10:52] <agronholm> ohumbel, you here?
[10:57] * juneau001 (~juneau@131.225.24.72) has joined #jython
[11:05] <agronholm> juneau001, would you happen to know what is required of a java-implemented stdlib class to have assignable properties (__dict__)?
[11:05] <agronholm> does it have to inherit from PyObject?
[11:09] <juneau001> agronholm: So you are creating a java class that allows for assignable properties?
[11:09] <agronholm> I'm trying to find out why cPickle.Unpickler does not allow assignment of find_global
[11:10] <agronholm> apparently there is an error in the Jython implementation, where Unpickler looks at cPickle.find_global instead
[11:10] <juneau001> agronholm: interesting. I thought that getters/setters on java objects were the only requirement...
[11:11] <agronholm> well, there isn't one for find_global
[11:11] <agronholm> if you have the sources handy, check org/python/modules/cPickle.java
[11:11] <juneau001> If it is functioning differently than CPython then it is perhaps an oversight...
[11:12] <juneau001> or bug
[11:12] <agronholm> http://docs.python.org/release/2.5.4/lib/pickle-sub.html
[11:12] <juneau001> I will take a look in a while. Just arrived at the office so I have to check on some things first.
[11:12] <agronholm> how would you interpret this
[11:12] <agronholm> Things are a little cleaner with cPickle, but not by much. To control what gets unpickled, you can set the unpickler's find_global attribute to a function or None. If it is None then any attempts to unpickle instances will raise an UnpicklingError. If it is a function, then it should accept a module name and a class name, and return the corresponding class object. It is responsible for looking up the class and performing any nece
[11:12] <agronholm> ssary imports, and it may raise an error to prevent instances of the class from being unpickled.
[11:13] <agronholm> unpickler's find_global, not the pickle module's
[11:16] <juneau001> I would interpret that find_global should be a property. :)
[11:16] <juneau001> That is how it sounds anyways
[11:16] <agronholm> and that is how it seems to work with CPython (though I have to verify to be 100% sure)
[11:18] <juneau001> If you create an object, you obviously set the find_global attribute to either a function or None. It would seem like you *should* have the ability to assign the function or None like a property.
[11:18] <agronholm> yeah, but Unpickler looks for find_global in the module's dict
[11:18] <agronholm> which is wrong imo
[11:21] <juneau001> Well, is find_global determined per class or per instance. I guess that would make a difference, wouldn't it? It is early in the morning here, but I am thinking that per instance attributes would work as properties....but per class attributes may not.
[11:21] <agronholm> per instance
[11:21] <juneau001> okay...then I would say that you are correct....it should work as a property
[11:21] <juneau001> IMO
[11:22] <agronholm> how can I fix this
[11:22] <agronholm> should assignment work if I set up setter/getter for find_global?
[11:22] <juneau001> It should
[11:22] <agronholm> ok I'll work on a patch and test it
[11:22] <ohumbel> agronholm, now i am here (but only for a few minutes)
[11:23] <juneau001> Try to set up a getter/setter and see if it does the trick. Getters/setters are translated into properties for jython
[11:23] <agronholm> oh
[11:23] <agronholm> ohumbel, have you read the scrollback
[11:23] <ohumbel> i am on the way...
[11:24] <ohumbel> my sf account is otmarhumbel, and i am ohumbel / Oti on this channel
[11:25] <juneau001> I have to run for a bit and get things going in the office...ohumbel probably knows more than I do about the Unpickler and find_global
[11:26] <juneau001> I use pickle quite a bit...but did not write any of it's jython implementation
[11:27] <agronholm> I just verified how it works on cPython
[11:28] <juneau001> I'd put a bug in the tracker just to get it out there so all of the devs see it.
[11:28] <juneau001> Then if you want to submit a patch to repair it that would be excellent!
[11:28] <agronholm> I can probably do that
[11:29] <agronholm> who has privileges to add new versions to the Jython bug tracker?
[11:30] <agronholm> aside from frank
[11:30] <ohumbel> agronholm, i think even frank has not
[11:30] <agronholm> who does then
[11:31] <ohumbel> as far as i know, one has to file a bug to the meta tracker (but i might be wrong)
[11:31] <ohumbel> i'll be back in ~2 hours
[11:31] <agronholm> k
[11:40] <agronholm> yay, fixed!
[11:53] <agronholm> added issue #1632 with the patch
[12:31] <ohumbel> agronholm - great, thanks a lot!
[12:33] <agronholm> hopefully this will get into 2.5.2b2
[12:41] <ohumbel> personally i am preparing for our family summer holidays now - i'll be mostly offline for about 2 weeks
[12:41] <ohumbel> that means: only reading, not hacking
[12:42] <agronholm> k
[13:06] <juneau001> agronholm: did you simply add setter/getter to repair the issue?
[13:07] <juneau001> agronholm: I see the patch now...nice work
[13:08] <juneau001> ohumbel: We
[13:08] <juneau001> will have to decide on a day to hold the Jython BoF at JavaOne
[13:09] <juneau001> ohumbel: I haven't had anymore emails from interested individuals, but we should still hold a BoF...I'm sure that we'll get some people in from the conference that are interested in attending at the last minute
[13:10] <ohumbel> juneau001, sure
[13:10] <ohumbel> at the moment i am very flexible, still
[13:10] <ohumbel> :-)
[13:10] <juneau001> Me too...just busy on Tuesday so far.
[13:11] <juneau001> Maybe Monday or Wednesday evening would work?
[13:11] <ohumbel> i heard there is a java posse big event, but i cannot remember which day
[13:11] <ohumbel> probably monday would fit well for us?
[13:12] <juneau001> we surely need to attend that event. Maybe we should just play it by ear depending upon the schedules of other events since it's still early.
[13:20] * mds1 (~seiler@131.220.126.195) has joined #jython
[13:21] * mds1 (~seiler@131.220.126.195) has left #jython
[13:34] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[14:07] * skay (~skay@pat1.orbitz.net) has joined #jython
[14:31] * juneau001_ (~juneau@FESS-116326.dhcp.fnal.gov) has joined #jython
[14:35] * juneau001_ (~juneau@FESS-116326.dhcp.fnal.gov) Quit (Remote host closed the connection)
[14:35] * juneau001_ (~juneau@FESS-116326.dhcp.fnal.gov) has joined #jython
[14:35] * juneau001 (~juneau@131.225.24.72) Quit (Ping timeout: 260 seconds)
[14:35] * juneau001_ is now known as juneau001
[14:54] * verterok (~ggonzalez@unaffiliated/verterok) has joined #jython
[15:08] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) Quit (Quit: jimbaker)
[15:09] * ttmrichter (~ttmrichte@59.175.37.155) Quit (Ping timeout: 265 seconds)
[15:18] * pigletto (~pigletto@dynamic-78-9-3-220.ssp.dialog.net.pl) has joined #jython
[15:40] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Quit: jabley)
[15:40] * agronholm_ (agronholm@nblzone-211-17.nblnetworks.fi) has joined #jython
[15:42] * agronholm (agronholm@2001:1bc8:102:413a:1561:5036:fc0:fbb) Quit (Ping timeout: 276 seconds)
[15:48] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[15:58] * jimbaker (~jbaker@64.134.151.252) has joined #jython
[16:12] * pr3d4t0r is now known as pr3d4k4t
[16:13] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) has joined #jython
[16:17] * pr3d4k4t is now known as pr3d4t0r
[16:41] * jimbaker (~jbaker@64.134.151.252) Quit (Quit: jimbaker)
[17:00] * lheuer (~heuer@unaffiliated/lheuer) Quit (Ping timeout: 260 seconds)
[18:06] * pigletto (~pigletto@dynamic-78-9-3-220.ssp.dialog.net.pl) Quit (Remote host closed the connection)
[18:32] * thobe (~Adium@212-162-171-110.skbbip.com) Quit (Quit: Leaving.)
[19:06] * skay (~skay@pat1.orbitz.net) Quit (Quit: skay)
[19:20] * juneau001 (~juneau@FESS-116326.dhcp.fnal.gov) Quit (Quit: juneau001)
[19:30] * jimbaker (~jbaker@c-67-173-240-173.hsd1.co.comcast.net) has joined #jython
[19:45] * jimbaker (~jbaker@c-67-173-240-173.hsd1.co.comcast.net) Quit (Quit: jimbaker)
[20:11] * pigletto (~pigletto@dynamic-87-105-113-136.ssp.dialog.net.pl) has joined #jython
[20:29] * r0bby (~wakawaka@guifications/user/r0bby) has joined #jython
[20:29] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[20:40] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) Quit (Remote host closed the connection)
[20:40] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) has joined #jython
[21:46] * pigletto (~pigletto@dynamic-87-105-113-136.ssp.dialog.net.pl) Quit (Remote host closed the connection)
[21:56] * jimbaker (~jbaker@64.134.155.136) has joined #jython
[22:23] * plankton (~peretto@189.58.71.249.dynamic.adsl.gvt.net.br) has joined #jython
[22:28] * plankton (~peretto@189.58.71.249.dynamic.adsl.gvt.net.br) Quit (Ping timeout: 260 seconds)
[22:32] * plankton (~peretto@189.58.71.249.dynamic.adsl.gvt.net.br) has joined #jython
[22:36] * plankton (~peretto@189.58.71.249.dynamic.adsl.gvt.net.br) Quit (Client Quit)
[22:37] * plankton (~peretto@189.58.71.249.dynamic.adsl.gvt.net.br) has joined #jython
[22:40] * jabley (~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com) Quit (Ping timeout: 265 seconds)
[22:44] * plankton (~peretto@189.58.71.249.dynamic.adsl.gvt.net.br) Quit (Ping timeout: 240 seconds)
[22:44] * verterok (~ggonzalez@unaffiliated/verterok) Quit (Quit: leaving)
[22:49] * plankton (~peretto@189.58.71.249.dynamic.adsl.gvt.net.br) has joined #jython
[22:52] * plankton (~peretto@189.58.71.249.dynamic.adsl.gvt.net.br) Quit (Client Quit)
[23:03] <pr3d4t0r> Hrm...
[23:03] <pr3d4t0r> Is there a simple way to convert list('a', 'b', 'c') into String[] { 'a', 'b', 'c' }?
[23:03] <pr3d4t0r> Without having to write a helper class -- thanks in advance.
[23:07] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) Quit (Remote host closed the connection)
[23:07] <agronholm_> something like this? http://www.pastebin.org/391327
[23:08] <pr3d4t0r> agronholm_: Interesting - yeah, maybe.
[23:08] <pr3d4t0r> agronholm_: Where is jarray documented?
[23:08] <agronholm_> hopefully in the jython book
[23:08] <agronholm_> it's a builtin jython module
[23:09] <pr3d4t0r> agronholm_: OKi.
[23:09] <pr3d4t0r> agronholm_: Thanks - let me see if this will work.
[23:12] <pr3d4t0r> agronholm_: That did the job - thanks :)
[23:12] <agronholm_> np :)
[23:13] <agronholm_> I'm working on a python to python http based RPC mechanism
[23:13] <agronholm_> it even has a pluggable serialization mechanism
[23:19] <pr3d4t0r> Listing 1-5 in the Jython book is bollocks. The { } are extraneous. Bad example.
[23:19] <pr3d4t0r> agronholm_: Nice!
[23:38] <agronholm_> ok, now I have clients for httplib, httplib2 and twisted
[23:39] <agronholm_> server for WebCore
[23:39] <agronholm_> need to have servers for twisted, pylons and a simple server too
[23:48] * jimbaker (~jbaker@64.134.155.136) Quit (Quit: jimbaker)

Index

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