#jython IRC Log


IRC Log for 2015-01-21

Timestamps are in GMT/BST.

[1:02] * xemdetia (xemdetia@nat/ibm/x-pelldfkcdwduciec) Quit (Ping timeout: 276 seconds)
[1:48] * srcerer (~chatzilla@dns2.klsairexpress.com) has joined #jython
[4:55] * Taraiph (984182b0@gateway/web/freenode/ip. has joined #jython
[4:55] <Taraiph> hey
[5:10] * fwierzbicki (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) Quit (Quit: Leaving.)
[5:14] * fwierzbicki (~Adium@2.sub-70-197-12.myvzw.com) has joined #jython
[5:33] * Taraiph (984182b0@gateway/web/freenode/ip. Quit (Quit: Page closed)
[5:53] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Read error: Connection reset by peer)
[5:54] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[6:59] * akurtakov (~akurtakov@redhat/akurtakov) has joined #jython
[9:02] * ebarrett_ is now known as ebarrett
[10:07] * fwierzbicki1 (~Adium@2600:1010:b002:5f42:3517:1919:e44d:3b03) has joined #jython
[10:08] * fwierzbicki (~Adium@2.sub-70-197-12.myvzw.com) Quit (Ping timeout: 245 seconds)
[10:16] * fwierzbicki (~Adium@ has joined #jython
[10:18] * fwierzbicki1 (~Adium@2600:1010:b002:5f42:3517:1919:e44d:3b03) Quit (Ping timeout: 245 seconds)
[10:23] * fwierzbicki1 (~Adium@23.sub-70-197-2.myvzw.com) has joined #jython
[10:23] * fwierzbicki (~Adium@ Quit (Ping timeout: 245 seconds)
[10:29] * fwierzbicki (~Adium@2600:1010:b01f:ec14:61d9:c1b9:37fb:b555) has joined #jython
[10:30] * fwierzbicki1 (~Adium@23.sub-70-197-2.myvzw.com) Quit (Ping timeout: 252 seconds)
[10:33] * fwierzbicki (~Adium@2600:1010:b01f:ec14:61d9:c1b9:37fb:b555) Quit (Ping timeout: 245 seconds)
[13:23] * xemdetia (xemdetia@nat/ibm/x-akhzgxrrjlobpjtn) has joined #jython
[14:16] * zz_gthank is now known as gthank
[14:36] * Paladiamors (~justin@pa9b391.tokynt01.ap.so-net.ne.jp) has joined #jython
[15:24] * Paladiamors (~justin@pa9b391.tokynt01.ap.so-net.ne.jp) Quit (Ping timeout: 245 seconds)
[17:11] * fwierzbicki (~Adium@2600:1010:b006:b75d:79f5:85b3:2780:e492) has joined #jython
[17:41] * mike_af (~mike_af@50-77-49-45-static.hfc.comcastbusiness.net) has joined #jython
[17:41] * mike_af (~mike_af@50-77-49-45-static.hfc.comcastbusiness.net) Quit (Changing host)
[17:41] * mike_af (~mike_af@unaffiliated/mike-af/x-5454762) has joined #jython
[17:51] <jimbaker> agronholm, any thoughts on http://bugs.jython.org/issue2202 ?
[17:51] <jimbaker> it would seem easy enough to fix if we know if such threads are always named "main", even if run on a system that's localized to be not english
[17:58] * fwierzbicki1 (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) has joined #jython
[18:02] * fwierzbicki (~Adium@2600:1010:b006:b75d:79f5:85b3:2780:e492) Quit (Ping timeout: 245 seconds)
[18:11] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 264 seconds)
[18:28] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[18:29] <agronholm> jimbaker: will look after dinner
[19:19] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 245 seconds)
[19:40] <agronholm> does i18n affect the main thread name?
[20:51] <agronholm> jimbaker: do you know why the thread is renamed?
[20:52] <agronholm> I don't think I understand what's happening here
[21:10] * gthank is now known as zz_gthank
[21:12] <jimbaker> agronholm, that's my question - if it's "main", so extra context to manage to fix this issue
[21:12] <jimbaker> no extra context
[21:14] <agronholm> so if jython is launched in standalone mode, we want to rename the thread, but otherwise not?
[21:17] * akurtakov (~akurtakov@redhat/akurtakov) Quit (Quit: Konversation terminated!)
[21:19] <jimbaker> agronholm, no i think the scenario is that the user has named threads to something appropriate; they start up PythonInterpreter objects, and one of the threads gets unhelpfully renamed to MainThread
[21:20] <agronholm> jimbaker: can you find the code that does the renaming?
[21:20] <jimbaker> messing up their debugging, logging or whatever use they were trying to get from this naming
[21:20] <jimbaker> agronholm, it's in Lib/threading.py
[21:21] <jimbaker> class _MainThread(Thread): ...
[21:21] <agronholm> but that starts a new thread
[21:21] <agronholm> I'm confused
[21:22] <jimbaker> no, it sets up the current thread
[21:23] <jimbaker> so my only question is, what is the name of this thread when run normally in jython (no PythonInterpreter, etc) on a non-english system
[21:24] <agronholm> how do I find out?
[21:25] <jimbaker> so just to modify _MainThread __init__ with a print java.lang.Thread.currentThread().name before it does anything else
[21:25] <jimbaker> done :)
[21:25] <agronholm> ok I was going to write a java app that does that :)
[21:26] <jimbaker> yeah, when that comes to mind, i suggest writing it in jython instead :)
[21:28] <agronholm> I added a print statement there but it doesn't seem to execute when I run jython from the command line
[21:28] <jimbaker> in this case it's a bit trickier because threading is apparently imported early
[21:29] <jimbaker> hmmm.... it's working just fine for me
[21:30] <jimbaker> https://gist.github.com/jimbaker/4ec81726b086c7e1b983
[21:31] <agronholm> https://bpaste.net/show/377ce63b8f43
[21:31] <jimbaker> it's possible it's unhelpfully None
[21:31] <agronholm> then it would at least print None
[21:32] <jimbaker> yeah, right. something different here
[21:32] <agronholm> which version are you trying it on?
[21:33] <agronholm> oh
[21:33] <agronholm> import threading did it
[21:33] <agronholm> it printed "main"
[21:34] <jimbaker> ahh, interesting. we are importing threading earlier now
[21:34] <jimbaker> wonder when that happened
[21:34] <agronholm> this is 2.7b3
[21:34] <jimbaker> yeah, and i'm on 2.7b4+
[21:35] <jimbaker> now if we used git bisect...
[21:35] <agronholm> yeh, on 2.7b4 it prints it right on startup
[21:36] <jimbaker> agronholm, thanks - i assume finnish OS is representative of these issues
[21:36] <agronholm> it should be
[21:38] <jimbaker> someone can always reopen the bug if our assumptions prove wrong
[22:09] * Paladiamors (~justin@pa9b391.tokynt01.ap.so-net.ne.jp) has joined #jython
[22:38] * Paladiamors (~justin@pa9b391.tokynt01.ap.so-net.ne.jp) Quit (Ping timeout: 264 seconds)
[23:09] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[23:13] * mike_af (~mike_af@unaffiliated/mike-af/x-5454762) Quit (Remote host closed the connection)


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