#jython IRC Log

Index

IRC Log for 2014-04-24

Timestamps are in GMT/BST.

[0:38] * fwierzbicki (~Adium@195.sub-70-197-10.myvzw.com) Quit (Quit: Leaving.)
[0:52] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 252 seconds)
[0:57] * srcerer_ (~chatzilla@dns2.klsairexpress.com) has joined #jython
[0:58] * srcerer (~chatzilla@dns2.klsairexpress.com) Quit (Ping timeout: 252 seconds)
[1:25] * fwierzbicki (~Adium@247.sub-70-197-10.myvzw.com) has joined #jython
[1:35] * fwierzbicki (~Adium@247.sub-70-197-10.myvzw.com) Quit (Ping timeout: 276 seconds)
[1:38] * lopex (uid4272@gateway/web/irccloud.com/x-eflgltidyeyoufig) Quit (Ping timeout: 252 seconds)
[1:41] * lopex (uid4272@gateway/web/irccloud.com/x-ezdqssfrbatnpdmz) has joined #jython
[1:59] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[2:04] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 264 seconds)
[2:16] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[2:17] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Remote host closed the connection)
[2:17] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[2:22] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 264 seconds)
[2:27] * fwierzbicki (~Adium@99-106-170-162.lightspeed.sntcca.sbcglobal.net) has joined #jython
[3:49] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[4:00] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 252 seconds)
[4:00] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[4:50] * Taylor (~Taylor@unaffiliated/taylor) Quit (Ping timeout: 258 seconds)
[5:37] * Taylor (~Taylor@unaffiliated/taylor) has joined #jython
[6:02] * ChrisPHL (~ChrisPHL@31-17-177-12-dynip.superkabel.de) has joined #jython
[6:06] * cpx (~cpx@31-17-177-12-dynip.superkabel.de) has joined #jython
[6:07] * cpx (~cpx@31-17-177-12-dynip.superkabel.de) Quit (Quit: Verlassend)
[6:07] * ChrisPHL (~ChrisPHL@31-17-177-12-dynip.superkabel.de) Quit (Quit: Verlassend)
[6:07] * ChrisPHL (~ChrisPHL@31-17-177-12-dynip.superkabel.de) has joined #jython
[6:16] * ChrisPHL_ (~ChrisPHL@31-17-177-12-dynip.superkabel.de) has joined #jython
[6:17] * ChrisPHL (~ChrisPHL@31-17-177-12-dynip.superkabel.de) Quit (Ping timeout: 252 seconds)
[6:26] * ChrisPHL_ (~ChrisPHL@31-17-177-12-dynip.superkabel.de) Quit (Ping timeout: 252 seconds)
[6:52] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[7:02] * oscar_toro (~Thunderbi@80-62-162-242-static.dk.customer.tdc.net) has joined #jython
[7:18] <peke> does jython 2.7 currently support subprocess.Popen.terminate? if i remember correctly, 2.7b1 didn't. if it is not supported, are there any plans to support it in 2.7 final?
[7:19] <peke> where should i start if i would like to see could i get it implemented?
[7:19] <peke> Popen.send_signal would be nice too but not as important, at leat for me, than terminate.
[7:23] <agronholm> does java itself support termination of subprocesses? if yes, then adding support should be trivial
[7:23] <agronholm> (I haven't looked into it)
[7:31] * ChrisPHL_ (~ChrisPHL@31-17-177-12-dynip.superkabel.de) has joined #jython
[7:34] <peke> agronholm: java ought to support killing processes: http://docs.oracle.com/javase/7/docs/api/java/lang/Process.html#destroy()
[7:36] <peke> although on posix Popen.terminate just sends TERM signal. Process.destroy() is closer to Popen.kill.
[7:37] <Arfrever> peke, agronholm: Also see http://stackoverflow.com/questions/19726804/how-to-kill-a-sub-process
[7:38] <peke> on windows Popen.terminate == Popen.kill. jython behaving same way also on posix ought to be ok. or at least better than nothing.
[7:40] <peke> Arfrever: the problem in that SO question apparently was that a proces was not started directly but via a wrapper.
[7:41] * ChrisPHL_ (~ChrisPHL@31-17-177-12-dynip.superkabel.de) Quit (Remote host closed the connection)
[7:41] <peke> in that case destroy just kills the wrapper but the actual process is left alone. that's how Popen.terminate/kill works too.
[7:44] <peke> to kill such process with subprocess, you need to create a process group (preexec_fn=os.setsid) and then kill with os.killpg.
[8:02] * ChrisPHL (~ChrisPHL@31-17-177-12-dynip.superkabel.de) has joined #jython
[8:22] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[8:30] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[8:46] * Taylor (~Taylor@unaffiliated/taylor) Quit (Read error: Operation timed out)
[9:20] * Taylor (~Taylor@unaffiliated/taylor) has joined #jython
[11:39] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Excess Flood)
[11:40] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[12:01] * zz_whg is now known as whg
[12:01] * jimbaker (~jbaker@unaffiliated/jimbaker) Quit (Ping timeout: 276 seconds)
[12:05] * jimbaker (~jbaker@c-75-71-81-32.hsd1.co.comcast.net) has joined #jython
[12:05] * jimbaker (~jbaker@c-75-71-81-32.hsd1.co.comcast.net) Quit (Changing host)
[12:05] * jimbaker (~jbaker@unaffiliated/jimbaker) has joined #jython
[13:11] <ChrisPHL> @jimbaker: I viewed test_pythoninterpreter_jy.py recently but this does not seem to be a solution for my problem...
[13:13] <ChrisPHL> @jimbaker: as far as I understand, you instanciate a PythonInterpreter and use the setOut()/setIn()/setErr() functions to get these streams from the script
[13:15] <ChrisPHL> does there exist any other way to transfer data (-streams) to the calling Java class?
[13:20] * ParahSailin (~parahsail@unaffiliated/parahsailin) Quit (Ping timeout: 246 seconds)
[13:21] * ParahSailin (~parahsail@unaffiliated/parahsailin) has joined #jython
[13:43] * whg (whg@unaffiliated/whg) Quit (Quit: ZNC - http://znc.in)
[13:44] * whg (whg@unaffiliated/whg) has joined #jython
[13:46] * whg is now known as whg_away
[14:07] * whg_away is now known as zz_whg_away
[14:42] * zz_whg_away is now known as whg
[15:42] * enebo (~enebo@mobile-166-147-101-001.mycingular.net) has joined #jython
[15:59] <jimbaker> ChrisPHL, your python code in jython can access anything in the java environment, along with well known files like sys.stdin, sys.stderr, sys.stdout
[16:16] * whg is now known as zz_whg
[16:35] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Excess Flood)
[16:36] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[16:39] * zz_whg is now known as whg
[16:47] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Excess Flood)
[16:47] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[17:01] * srcerer_ is now known as srcerer
[17:24] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 252 seconds)
[17:29] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[17:37] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 252 seconds)
[17:39] * enebo (~enebo@mobile-166-147-101-001.mycingular.net) Quit (Quit: enebo)
[17:39] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[17:58] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 252 seconds)
[18:01] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[18:10] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 252 seconds)
[18:26] * whg is now known as whg_away
[18:32] * oscar_toro (~Thunderbi@80-62-162-242-static.dk.customer.tdc.net) Quit (Ping timeout: 240 seconds)
[19:10] * JStoker (jstoker@unaffiliated/jstoker) Quit (Ping timeout: 246 seconds)
[19:13] * JStoker (jstoker@unaffiliated/jstoker) has joined #jython
[20:01] * jorgew (~Adium@50.57.17.244) has joined #jython
[20:12] * chrisseaton (~chrisseat@79-76-240-14.dynamic.dsl.as9105.com) has joined #jython
[20:58] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[21:03] * jorgew (~Adium@50.57.17.244) Quit (Quit: Leaving.)
[21:13] * whg_away is now known as zz_whg_away
[21:33] * chrisseaton (~chrisseat@79-76-240-14.dynamic.dsl.as9105.com) Quit ()
[22:54] * jorgew (~Adium@cpe-70-114-12-39.satx.res.rr.com) has joined #jython
[22:58] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Operation timed out)
[22:59] * jorgew (~Adium@cpe-70-114-12-39.satx.res.rr.com) Quit (Client Quit)
[23:01] * darktwinge (~Twinge@184-96-239-44.hlrn.qwest.net) has joined #jython
[23:02] * Twinge (~Twinge@184-96-239-44.hlrn.qwest.net) Quit (Ping timeout: 252 seconds)
[23:20] * chrisseaton (~chrisseat@79-76-240-14.dynamic.dsl.as9105.com) has joined #jython
[23:47] * chrisseaton (~chrisseat@79-76-240-14.dynamic.dsl.as9105.com) Quit ()
[23:49] * chrisseaton (~chrisseat@79-76-240-14.dynamic.dsl.as9105.com) has joined #jython

Index

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