[issue23797] Mac OS X locale setup in thread happens sometime after run() is called

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm closing this issue as "works for me". Please re-open if there is more information on how to reproduce the problem. -- resolution: -> works for me stage: -> resolved status: open -> closed type: -> behavior

[issue23797] Mac OS X locale setup in thread happens sometime after run() is called

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've been using the scriptlet below to try to attempt to reproduce the problem. I'm not sure if this matches the way the program of the OP is set up. The scriptlet below works for me without problems (macOS 10.15, Python 3.4 - 3.9). This either means the p

[issue23797] Mac OS X locale setup in thread happens sometime after run() is called

2015-03-29 Thread Barry Alan Scott
Barry Alan Scott added the comment: I should point out using Python2.7 with wxPython I do not see this issue. This issue was exposed during my efforts to port pysvn from py2.7+wxPython to py3.4+wxpython-phoenix. I do setup locale on the main thread very early before starting the background thr

[issue23797] Mac OS X locale setup in thread happens sometime after run() is called

2015-03-28 Thread Ned Deily
Ned Deily added the comment: The behavior noted in Issue18378 isn't an Apple bug; it's a GNU vs BSD difference. Can you avoid the problem by calling locale.getlocale() in the main program before creating any threads? -- ___ Python tracker

[issue23797] Mac OS X locale setup in thread happens sometime after run() is called

2015-03-28 Thread R. David Murray
R. David Murray added the comment: This is probably related to or effectively a duplicate of issue 18378, which looks to be an Apple bug. Do you have the problem if you remove the getlocale() call? -- components: +Macintosh nosy: +ned.deily, r.david.murray, ronaldoussoren

[issue23797] Mac OS X locale setup in thread happens sometime after run() is called

2015-03-28 Thread Barry Alan Scott
New submission from Barry Alan Scott: I'm seeing a random traceback when starting a new thread on Mac OS X 10.10.2 with python 3.4.3 final. Exception in thread Thread-1: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/threading.py", l