Title: Some threading's Thread methods return unicode strings
Type: Severity: normal
Components: Library Versions: Jython 2.7
Milestone: Jython 2.7.2
Status: open Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: memoselyk, zyasoft
Priority: Keywords:

Created on 2016-02-16.22:12:01 by memoselyk, last changed 2016-02-16.23:46:13 by zyasoft.

msg10746 (view) Author: memoselyk (memoselyk) Date: 2016-02-16.22:20:37
In Jython, threading.currentThread().getName() returns u"MainThread", whereas Python 2.7 returns "MainThread".

This asymmetry could lead to subtle bugs only arising in jython 2.7.
msg10747 (view) Author: Jim Baker (zyasoft) Date: 2016-02-16.23:46:13
In general, these names can be unicode but we have been doing str if possible to represent using ascii elsewhere in Jython.
Date User Action Args
2016-02-16 23:46:13zyasoftsetresolution: accepted
messages: + msg10747
nosy: + zyasoft
milestone: Jython 2.7.2
2016-02-16 22:20:37memoselyksetmessages: + msg10746
2016-02-16 22:12:01memoselykcreate