#jython IRC Log (v0.9)

Index

IRC Log for 2010-05-18

Timestamps are in GMT/BST.

[0:31] * whaley (~whaley@64.134.184.180) Quit (Quit: :-x)
[0:40] * niallo (~niallo@unworkable-box.ba.kolo.net) has joined #jython
[0:41] <niallo> hi, i am trying to pass a Java class to the constructor of a Python class. It seems like for strings and ints this is easy - you just wrap with PyString or whatever - but how do you wrap a Java object ?
[0:41] <sabi> jython should do that for you.
[0:42] <agronholm_> niallo, how are you doing it?
[0:42] <niallo> so, i am using the one-to-one simple java object factory method
[0:43] <niallo> http://gist.github.com/404331 here is the code
[0:43] <agronholm_> Py.java2py() might work for you
[0:43] <niallo> compiler barfs on me passing the instance to __call__()
[0:44] <niallo> ok i will try Py.java2py
[0:45] <niallo> that seems to have done the trick - thanks!
[0:49] * felipejcruz (~felipe.cr@mlsrj200152101p212.static.mls.com.br) Quit (Quit: Ex-Chat)
[1:00] * juneau001 (~juneau@pool-72-69-75-225.chi01.dsl-w.verizon.net) has joined #jython
[1:00] <Oti> sabi: would it be possible to run the regrtests on the windows buildbot in verbose mode (or at least the failing test_bat_jy.py)?
[1:01] <Oti> i ran them successfully on my machine, dozens of times
[1:03] * hpk (~hpk@HSI-KBW-085-216-105-248.hsi.kabelbw.de) Quit (Ping timeout: 265 seconds)
[1:07] <sabi> Oti: sure
[1:08] <Oti> that would be great
[1:08] <Oti> id doesn't hurry though, it is very late over here...
[1:08] <Oti> id/it
[1:08] <sabi> ok, if you wouldn't mind, i'd prefer friday, after my exams :)
[1:08] <sabi> send me email so i don't forget
[1:09] <Oti> will to - thanks!
[1:09] <Oti> and good luck with your exams ! !
[1:10] <sabi> thanks
[1:15] * hpk (~hpk@HSI-KBW-085-216-105-248.hsi.kabelbw.de) has joined #jython
[1:23] * ttmrichter (~ttmrichte@59.173.202.85) has joined #jython
[1:35] * enebo (~enebo@174-20-111-148.mpls.qwest.net) Quit (Quit: enebo)
[2:11] * whaley (~whaley@c-71-199-235-64.hsd1.fl.comcast.net) has joined #jython
[2:30] * agronholm (agronholm@nblzone-211-17.nblnetworks.fi) has joined #jython
[2:31] * agronhol (agronholm@nblzone-211-17.nblnetworks.fi) has joined #jython
[2:34] * agronholm_ (demigod@2001:1bc8:102:413a:a1e5:e54:4631:cecd) Quit (Ping timeout: 259 seconds)
[2:35] * agronholm (agronholm@nblzone-211-17.nblnetworks.fi) Quit (Ping timeout: 258 seconds)
[3:11] * lopex (lopex@chello089076044027.chello.pl) Quit ()
[3:47] * whaley (~whaley@c-71-199-235-64.hsd1.fl.comcast.net) Quit (Quit: :-x)
[4:02] * plankton (~peretto@187-17-17-100.wln.net.br) has joined #jython
[4:10] * agronhol (agronholm@nblzone-211-17.nblnetworks.fi) Quit (Quit: Lähdössä)
[4:10] * agronholm (agronholm@nblzone-211-17.nblnetworks.fi) has joined #jython
[4:17] * plankton (~peretto@187-17-17-100.wln.net.br) Quit (Ping timeout: 276 seconds)
[4:19] * r0bby_ (~wakawaka@cpe-24-164-169-240.hvc.res.rr.com) has joined #jython
[4:19] * r0bby_ (~wakawaka@cpe-24-164-169-240.hvc.res.rr.com) Quit (Changing host)
[4:19] * r0bby_ (~wakawaka@guifications/user/r0bby) has joined #jython
[4:20] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[4:21] * grarp (~nparrish@ns1.clustrix.com) Quit (Quit: Leaving.)
[4:26] * r0bby_ (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[4:28] * r0bby_ (~wakawaka@cpe-24-164-169-240.hvc.res.rr.com) has joined #jython
[4:28] * robbyoconnor (~wakawaka@cpe-24-164-169-240.hvc.res.rr.com) has joined #jython
[4:28] * r0bby_ (~wakawaka@cpe-24-164-169-240.hvc.res.rr.com) Quit (Changing host)
[4:28] * r0bby_ (~wakawaka@guifications/user/r0bby) has joined #jython
[4:28] * robbyoconnor (~wakawaka@cpe-24-164-169-240.hvc.res.rr.com) Quit (Changing host)
[4:28] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[4:29] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[4:29] * r0bby_ (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[4:31] * robbyoconnor (~wakawaka@cpe-24-164-169-240.hvc.res.rr.com) has joined #jython
[4:31] * robbyoconnor (~wakawaka@cpe-24-164-169-240.hvc.res.rr.com) Quit (Changing host)
[4:31] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[4:46] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Quit: Leaving)
[4:47] * robbyoconnor (~wakawaka@cpe-24-164-169-240.hvc.res.rr.com) has joined #jython
[4:47] * robbyoconnor (~wakawaka@cpe-24-164-169-240.hvc.res.rr.com) Quit (Changing host)
[4:47] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[4:49] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[4:52] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[5:11] * juneau001 (~juneau@pool-72-69-75-225.chi01.dsl-w.verizon.net) Quit (Quit: Take care...)
[5:34] * headius (~headius@216.160.3.79) has joined #jython
[6:47] * pigletto (~quassel@109.243.208.196) has joined #jython
[7:18] * pigletto (~quassel@109.243.208.196) Quit (Ping timeout: 248 seconds)
[7:20] * pigletto (~quassel@109.243.208.196) has joined #jython
[7:23] * pigletto (~quassel@109.243.208.196) Quit (Client Quit)
[7:31] * pigletto (~quassel@109.243.70.164) has joined #jython
[7:40] * ttmrichter (~ttmrichte@59.173.202.85) Quit (Ping timeout: 245 seconds)
[7:41] * ttmrichter (~ttmrichte@221.234.133.5) has joined #jython
[7:45] * headius (~headius@216.160.3.79) Quit (Quit: headius)
[7:48] * Oti (~ohumbel@adsl-178-39-57-128.adslplus.ch) Quit (Quit: Oti)
[07:49] == JythonLogBot [~PircBot@adsl-178-39-57-128.adslplus.ch] has quit [Remote host closed the connection]
[07:49] == headius [~headius@216.160.3.79] has joined #jython
[07:58] == headius [~headius@216.160.3.79] has quit [Quit: headius]
[07:59] == headius [~headius@216.160.3.79] has joined #jython
[08:01] == headius [~headius@216.160.3.79] has quit [Client Quit]
[08:11] == headius [~headius@216.160.3.79] has joined #jython
[08:18] == headius [~headius@216.160.3.79] has quit [Quit: headius]
[08:20] == super__ [~super_@unaffiliated/lolsuper-/x-9881387] has quit [Read error: Connection reset by peer]
[08:21] == super__ [~super_@unaffiliated/lolsuper-/x-9881387] has joined #jython
[08:24] == headius [~headius@216.160.3.79] has joined #jython
[08:38] == headius [~headius@216.160.3.79] has quit [Quit: headius]
[08:44] == jabley [~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com] has joined #jython
[08:57] == thobe [~Adium@212-162-171-110.skbbip.com] has joined #jython
[09:54] == jabley [~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com] has quit [Quit: jabley]
[10:25] == jabley [~jabley@87-84-49-84.absolutely2.mezzonet.net] has joined #jython
[11:04] == hipertracker [~hipertrac@89.167.220.4] has joined #jython
[11:46] == sabi [~nicholas@fortinbras.zoiks.net] has quit [Ping timeout: 245 seconds]
[11:48] == sabi [~nicholas@fortinbras.zoiks.net] has joined #jython
[12:53] == juneau001 [~juneau@131.225.24.190] has joined #jython
[13:06] == stakkars [~tismer@82.113.119.242] has joined #jython
[13:17] == whaley [~whaley@64.241.37.140] has joined #jython
[14:22] == pigletto [~quassel@109.243.70.164] has quit [Read error: Connection reset by peer]
[15:11] == lheuer [~heuer@unaffiliated/lheuer] has joined #jython
[15:45] == thobe [~Adium@212-162-171-110.skbbip.com] has quit [Quit: Leaving.]
[16:20] == stakkars [~tismer@82.113.119.242] has quit [Read error: Connection reset by peer]
[17:03] == clajo04_ [~clajo04_@71.167.166.169] has quit [Quit: clajo04_]
[17:05] == Kami_ [~kami@kamislo.broker.freenet6.net] has joined #jython
[17:07] == whaley [~whaley@64.241.37.140] has quit [Quit: :-x]
[17:12] == pjenvey [~pjenvey@underboss.org] has quit [Ping timeout: 246 seconds]
[17:12] == svenk [~sven@213.73.89.36] has quit [Ping timeout: 246 seconds]
[17:13] == sabi [~nicholas@fortinbras.zoiks.net] has quit [Ping timeout: 246 seconds]
[17:13] == sabi [~nicholas@fortinbras.zoiks.net] has joined #jython
[17:13] == ttmrichter [~ttmrichte@221.234.133.5] has quit [Ping timeout: 240 seconds]
[17:14] == pjenvey [~pjenvey@underboss.org] has joined #jython
[17:14] == svenk [~sven@213.73.89.36] has joined #jython
[17:15] == pr3d4k4t [~cu4cu4@varenka.cime.net] has joined #jython
[17:17] <pr3d4k4t> Greetings.
[17:17] == pr3d4t0r [~cu4cu4@varenka.cime.net] has quit [Disconnected by services]
[17:18] == pr3d4k4t has changed nick to pr3d4t0r
[17:18] <ohumbel> pr3d4t0r: hi
[17:18] <pr3d4t0r> :)
[17:21] == lopex [lopex@chello089076044027.chello.pl] has joined #jython
[17:33] == ttmrichter [~ttmrichte@221.234.133.5] has joined #jython
[17:54] == ttmrichter [~ttmrichte@221.234.133.5] has quit [Ping timeout: 264 seconds]
[18:10] == whaley [~whaley@c-71-199-235-64.hsd1.fl.comcast.net] has joined #jython
[18:11] == jabley [~jabley@87-84-49-84.absolutely2.mezzonet.net] has quit [Quit: jabley]
[18:22] == grarp [~nparrish@ns1.clustrix.com] has joined #jython
[18:41] == thobe [~Adium@c83-249-235-76.bredband.comhem.se] has joined #jython
[18:41] == hipertracker [~hipertrac@89.167.220.4] has quit [Quit: hipertracker]
[18:42] == lheuer [~heuer@unaffiliated/lheuer] has quit [Quit: Closing Time]
[18:54] == robbyoconnor [~wakawaka@cpe-24-164-169-240.hvc.res.rr.com] has joined #jython
[18:54] == robbyoconnor [~wakawaka@cpe-24-164-169-240.hvc.res.rr.com] has quit [Changing host]
[18:54] == robbyoconnor [~wakawaka@guifications/user/r0bby] has joined #jython
[18:54] == robbyoconnor [~wakawaka@guifications/user/r0bby] has quit [Read error: Connection reset by peer]
[19:08] == skay [~skay@198.175.57.245] has joined #jython
[19:32] == felipejcruz [~felipe.cr@mlsrj200152101p212.static.mls.com.br] has joined #jython
[19:33] == WoodieAllen [~alen.wood@93-103-139-21.dynamic.dsl.t-2.net] has joined #jython
[19:33] <WoodieAllen> hello
[19:34] <WoodieAllen> is it possible to code an ap in Jython and run that app in a mobile phone like Nokia 3720 Classic?
[19:35] <WoodieAllen> my mobile phone supports Java ME (Micro Edition)
[19:35] <WoodieAllen> is Jython the way to go?
[19:36] <felipejcruz> i really don't know.. but is possible to run python on symbian phones
[19:36] <WoodieAllen> i know
[19:36] <WoodieAllen> i'll code in my computer
[19:37] <WoodieAllen> in jython
[19:37] <felipejcruz> you need jython to integrate python with java on aphone?
[19:37] <WoodieAllen> and then create a .jar file
[19:37] <WoodieAllen> and put that .jar file into my phone
[19:37] == super__ [~super_@unaffiliated/lolsuper-/x-9881387] has quit [Ping timeout: 265 seconds]
[19:38] <WoodieAllen> is that possible?
[19:38] == lolsuper_ [~super_@unaffiliated/lolsuper-/x-9881387] has joined #jython
[19:38] <grarp> not knowing anything about deploying to phones, it seems like you could potentially bundle the embedded jython.jar (which includes all the python files) into your app's .jar and make this happen.
[19:39] <WoodieAllen> you don't understand
[19:39] <WoodieAllen> look...
[19:40] <WoodieAllen> i am going to create an application using Jython
[19:40] <WoodieAllen> and then I'll put that created application into my cell phone
[19:40] <WoodieAllen> i am asking whether the app would work on a phone that supports only Java ME
[19:41] <WoodieAllen> i am going to create that app in my laptop
[19:41] <WoodieAllen> no jython.jar in my phone
[19:41] <felipejcruz> if you google this subject i'll see some people that sucessfull deployed jython on their phones
[19:41] <grarp> without jython.jar on your phone, I don't think you're going to get far
[19:42] <grarp> unless you were to take the deprecated jythonc approach to compile down to java bytecode
[19:42] == lolsuper_ [~super_@unaffiliated/lolsuper-/x-9881387] has quit [Ping timeout: 240 seconds]
[19:42] <felipejcruz> i don't know if jython "standart" jar file will run in a JME environment..
[19:43] <felipejcruz> http://aspn.activestate.com/ASPN/Mail/Message/Jython-dev/2069786
[19:44] <felipejcruz> and if you want to make a jar file to deploy on you phone, you have to pack your app together with jython..
[19:45] <grarp> either way, to deploy jython in this fashion, I'm pretty sure you'll want to choose the 'embedded' option when running the jython installer.
[19:46] <WoodieAllen> how can i get the embedded option of the jython installer?
[19:48] <WoodieAllen> how can i choose it?
[19:49] <WoodieAllen> i copyed the jython 2.5.1 .jar file onto my phone and the phone said it is an invalid file
[19:49] <WoodieAllen> why is that?
[19:50] <grarp> when you run the installer, it prompts you what kind of installation you want.
[19:51] <grarp> http://wiki.python.org/jython/JythonFaq/EmbeddingJython?highlight=(installer)|(embedded)
[19:52] <WoodieAllen> do i need to have python installed in my phone?
[19:53] <WoodieAllen> i am a complete newbie
[19:53] <WoodieAllen> please help
[19:55] <felipejcruz> no.. you don't need python on your phone
[19:59] <WoodieAllen> i see
[19:59] <WoodieAllen> how can i compile a script to be a Java app?
[20:00] <WoodieAllen> do i need to code like normal?
[20:00] <grarp> at the risk of sounding terribly discouraging, if you are a complete newbie to java and jvm, this might not be the most expeditious approach to getting something up and running on your phone.
[20:01] <WoodieAllen> create a file called Foo.jar and code in the script should begin with import java and then subclass Java superclasses
[20:01] <WoodieAllen> ?
[20:01] <grarp> the crux of the exercise is building a java app which is runnable by your phone, which can import the jython jar and then instantiate a jython interpreter
[20:02] <WoodieAllen> i can't install Jython on my phone
[20:02] <grarp> from that point you may then begin running jython scripts, which can instantiate and manipulate java classes
[20:03] <WoodieAllen> so Jython's top-level package is named java?
[20:03] <grarp> then, as my 8 year old cousin like to say, "tough titties"
[20:07] <grarp> if I understand your question, which is far from guaranteed, it's more like org.python, i.e.: org.python.util.PythonInterpreter;
[20:08] == WoodieAllen [~alen.wood@93-103-139-21.dynamic.dsl.t-2.net] has quit []
[20:13] == jabley [~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com] has joined #jython
[20:47] == juneau001 [~juneau@131.225.24.190] has quit [Quit: Take care...]
[21:31] == pigletto [~pigletto@78.8.104.144] has joined #jython
[22:01] == thobe [~Adium@c83-249-235-76.bredband.comhem.se] has quit [Quit: Leaving.]
[22:20] == jabley [~jabley@cpc1-farn4-0-0-cust318.glfd.cable.ntl.com] has quit [Quit: jabley]
[22:22] == whaley [~whaley@c-71-199-235-64.hsd1.fl.comcast.net] has quit [Remote host closed the connection]
[22:54] == thobe [~Adium@c83-249-235-76.bredband.comhem.se] has joined #jython
[22:56] == skay [~skay@198.175.57.245] has quit [Quit: skay]
[22:57] == lolsuper_ [~super_@unaffiliated/lolsuper-/x-9881387] has joined #jython
[23:18] == thobe [~Adium@c83-249-235-76.bredband.comhem.se] has quit [Quit: Leaving.]
[23:24] == goundy [~goundy@109.128.197.227] has joined #jython
[23:31] == pigletto [~pigletto@78.8.104.144] has quit [Remote host closed the connection]
[23:33] == goundy [~goundy@109.128.197.227] has quit [Quit: Ex-Chat]
[23:50] == whaley [~whaley@c-71-199-235-64.hsd1.fl.comcast.net] has joined #jython
[23:54] == headius [~headius@216.160.3.79] has joined #jython
[23:55] == felipejcruz [~felipe.cr@mlsrj200152101p212.static.mls.com.br] has quit [Quit: Ex-Chat]
[23:56] == whaley [~whaley@c-71-199-235-64.hsd1.fl.comcast.net] has quit [Remote host closed the connection]

Index

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