#jython IRC Log (v0.9)

Index

IRC Log for 2010-08-18

Timestamps are in GMT/BST.

[0:07] * ttmrichter (~ttmrichte@111.173.97.187) has joined #jython
[0:13] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) Quit (Remote host closed the connection)
[0:20] * enebo (~enebo@174-30-246-209.mpls.qwest.net) Quit (Quit: enebo)
[0:57] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[1:40] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 245 seconds)
[2:09] * lopex (lopex@chello089076044027.chello.pl) Quit ()
[2:09] * verterok (~ggonzalez@unaffiliated/verterok) Quit (Ping timeout: 252 seconds)
[2:12] * tseNkiN (~tseNkiN@173.178.88.95) has joined #jython
[2:13] * tseNkiN (~tseNkiN@173.178.88.95) has left #jython
[2:50] * stakkars (~tismer@i577B7EC8.versanet.de) Quit (Quit: stakkars)
[2:52] * verterok (~ggonzalez@unaffiliated/verterok) has joined #jython
[2:59] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[3:04] * stakkars (~tismer@i577B7EC8.versanet.de) has joined #jython
[3:11] * thijstriemstra (~thijstrie@h183130.upc-h.chello.nl) has joined #jython
[4:39] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 265 seconds)
[5:31] * pigletto (~quassel@109.243.137.33) has joined #jython
[7:01] * ohumbel (5390f2dc@gateway/web/freenode/ip.83.144.242.220) has joined #jython
[7:23] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[7:24] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[8:36] * juneau001_ (~juneau@pool-72-69-210-193.chi01.dsl-w.verizon.net) has joined #jython
[8:37] * thobe (~Adium@212-162-171-110.skbbip.com) has joined #jython
[8:39] * juneau001 (~juneau@pool-72-69-195-122.chi01.dsl-w.verizon.net) Quit (Ping timeout: 265 seconds)
[8:39] * juneau001_ is now known as juneau001
[9:23] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) has joined #jython
[9:29] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) has joined #jython
[9:58] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[10:21] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[10:50] * juneau001 (~juneau@pool-72-69-210-193.chi01.dsl-w.verizon.net) Quit (Quit: juneau001)
[10:53] * juneau001 (~juneau@pool-72-69-210-193.chi01.dsl-w.verizon.net) has joined #jython
[11:03] * Kami__ (~kami@86.58.76.208) has joined #jython
[11:04] * Kami_ (~kami@86.58.76.208) Quit (Ping timeout: 276 seconds)
[11:23] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) Quit (Remote host closed the connection)
[11:37] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) has joined #jython
[11:39] * thobe (~Adium@212-162-171-110.skbbip.com) Quit (Quit: Leaving.)
[12:33] * thobe (~Adium@83.249.252.237) has joined #jython
[13:02] * r0bby (~wakawaka@guifications/user/r0bby) has joined #jython
[13:03] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 245 seconds)
[13:18] * pigletto (~quassel@109.243.137.33) Quit (Remote host closed the connection)
[13:36] * enebo (~enebo@174-30-246-209.mpls.qwest.net) has joined #jython
[13:41] * enebo (~enebo@174-30-246-209.mpls.qwest.net) Quit (Client Quit)
[13:49] * thobe (~Adium@83.249.252.237) Quit (Quit: Leaving.)
[13:54] * stakkars (~tismer@i577B7EC8.versanet.de) Quit (Ping timeout: 245 seconds)
[14:01] * stakkars (~tismer@i59F7DDAA.versanet.de) has joined #jython
[15:09] * janimo (~jani@188.24.90.219) has joined #jython
[15:28] <janimo> hi, what is the best way to have a Python module embedded in a Java app via PythonInterpreter.execfile() reloaded when it changes, without having to restart the Java app?
[15:44] * skay (~skay@pat1.orbitz.net) has joined #jython
[15:52] <Moo^_^> janimo: recreate interpreter?
[15:52] <janimo> that is quite costly I think
[15:52] * enebo (~enebo@174-30-246-209.mpls.qwest.net) has joined #jython
[15:55] * jabley (~jabley@87-84-49-84.absolutely2.mezzonet.net) Quit (Quit: jabley)
[15:57] <jimbaker> janimo: you can look the logic of org.python.core.imp#reload
[15:58] <janimo> I could use reload if that works instead of replicatring what it does
[15:58] * lheuer (~heuer@unaffiliated/lheuer) Quit (Quit: Closing Time)
[15:58] <janimo> is jython different from cpython wrt reloading modules?
[15:58] <jimbaker> it's the same
[15:58] <janimo> jimbaker: ok, thanks
[15:59] <jimbaker> so feel free to manipulate the modules map
[15:59] <janimo> any corner cases to be aware of?
[15:59] <Moo^_^> janimo: reload is very unsafe technique
[15:59] <Moo^_^> janimo: there are many corner cases were it fails
[16:00] <Moo^_^> and causes great headache
[16:00] <jimbaker> Moo^_^: I think it depends on your expectations of reload :)
[16:00] <janimo> I was hoping running an external; pyton script within Jython and refreshing it without retsrat of the JVM was a common use case
[16:01] <janimo> while developing and testing it would sure be useful
[16:01] <Moo^_^> janimo: well if scripts are simple (no imports magic aliasing, etc. ) then reload will do it
[16:01] <janimo> not sure I know what magic aliasing is (import as ?)
[16:02] <janimo> basically it is a main.py which is execscript()-ed
[16:02] <janimo> and in turns import other py modules
[16:02] <janimo> I send it commands via UDP
[16:02] <janimo> and one should trigger a reload(sys.modules[globals()['__name__']]_
[16:02] <janimo> or something to that effect
[16:03] <janimo> and main.py from the disc would ideally be loaded and answreing the next UDP message
[16:03] <jimbaker> sounds awkward to me, but probably has no problems with reload
[16:04] <jimbaker> basically http://docs.python.org/library/functions.html#reload applies, except reload has nothing to do with java
[16:04] <jimbaker> in terms of any java classes that are imported. just use a classloader for that
[16:05] <janimo> indeed, I only want the python bits reloaded, as those are the ones I am changing and don't want to retart the Java app at every change
[16:06] <janimo> ok, I'll dig more as the reloadd approach did not work before hpping on IRC
[16:06] <janimo> I'll try reloading one of the submodules not __main__
[16:07] <jimbaker> you may have a reference somewhere in your code to the old classes. basically new AND old classes can exist side by side, nothing magic happens in terms of changing that
[16:07] <janimo> thanks, I'll work on it
[16:08] <jimbaker> only what is in sys.modules, which will be seen in subsequent imports
[16:08] <jimbaker> good luck
[16:11] <jimbaker> if you run into problems, read http://www.python.org/dev/peps/pep-0302/ - we implement the standard python import protocol in 2.5
[16:18] <jimbaker> of course since you can always change the class of a python object, you could do some magic. whether it would be useful, like jrebel supposedly is, i don't know. probably just screws things up! regardless, such functionality should work on other python implementations, so there may be some existing experience/horror stories :)
[16:19] <jimbaker> later
[16:19] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) Quit (Quit: jimbaker)
[17:22] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) has joined #jython
[17:54] * ttmrichter (~ttmrichte@111.173.97.187) Quit (Ping timeout: 252 seconds)
[17:54] * r0bby is now known as robbyoconnor
[18:13] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[18:13] * sabi (~nicholas@fortinbras.zoiks.net) Quit (Ping timeout: 240 seconds)
[18:13] * sabi (~nicholas@fortinbras.zoiks.net) has joined #jython
[18:14] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 265 seconds)
[18:49] * thobe (~Adium@c83-249-252-237.bredband.comhem.se) has joined #jython
[18:54] * lopex (lopex@chello089076044027.chello.pl) Quit (Ping timeout: 240 seconds)
[18:54] * lopex (lopex@chello089076044027.chello.pl) has joined #jython
[18:56] * jabley (~jabley@cpc1-farn4-0-0-cust318.6-2.cable.virginmedia.com) Quit (Quit: jabley)
[19:27] * jimbaker (~jbaker@c-71-56-218-237.hsd1.co.comcast.net) has joined #jython
[19:49] * pseudo (~nicolas@ALille-154-1-40-44.w86-198.abo.wanadoo.fr) has joined #jython
[19:50] * pseudo (~nicolas@ALille-154-1-40-44.w86-198.abo.wanadoo.fr) has left #jython
[19:59] * skay (~skay@pat1.orbitz.net) Quit (Quit: skay)
[20:49] * janimo (~jani@188.24.90.219) Quit (Quit: Leaving.)
[20:55] * jbaker_ (~jbaker@c-71-56-218-237.hsd1.co.comcast.net) has joined #jython
[20:55] * jimbaker (~jbaker@c-71-56-218-237.hsd1.co.comcast.net) Quit (Read error: Connection reset by peer)
[20:57] * njoyce` (~njoyce@apollo.boxdesign.co.uk) has joined #jython
[20:58] * pjenvey_ (~pjenvey@underboss.org) has joined #jython
[20:58] * njoyce (~njoyce@apollo.boxdesign.co.uk) Quit (Read error: Operation timed out)
[20:58] * pjenvey (~pjenvey@underboss.org) Quit (Read error: Operation timed out)
[20:58] * njoyce` is now known as njoyce
[21:04] * jbaker_ (~jbaker@c-71-56-218-237.hsd1.co.comcast.net) Quit (Quit: jbaker_)
[21:29] * lucian_ (~lucian@188-222-55-189.zone13.bethere.co.uk) has joined #jython
[21:30] * lucian (~lucian@188-222-55-189.zone13.bethere.co.uk) Quit (Ping timeout: 240 seconds)
[21:57] * lucian_ (~lucian@188-222-55-189.zone13.bethere.co.uk) Quit (Remote host closed the connection)
[21:59] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) has joined #jython
[23:21] * Kami__ (~kami@86.58.76.208) Quit (Quit: Off)
[23:21] * Kami_ (~kami@86.58.76.208) has joined #jython
[23:22] * jimbaker (~jbaker@c-24-8-39-78.hsd1.co.comcast.net) Quit (Quit: jimbaker)
[23:35] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[23:36] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[23:37] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[23:39] * r0bby (~wakawaka@cpe-24-164-169-240.hvc.res.rr.com) has joined #jython
[23:39] * r0bby (~wakawaka@cpe-24-164-169-240.hvc.res.rr.com) Quit (Changing host)
[23:39] * r0bby (~wakawaka@guifications/user/r0bby) has joined #jython
[23:39] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Disconnected by services)
[23:40] * r0bby is now known as robbyoconnor
[23:40] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)

Index

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