Discussion:
[Python-3000-checkins] r67443 - in python/branches/py3k: Lib/idlelib/rpc.py Lib/idlelib/run.py Misc/NEWS
amaury.forgeotdarc
2008-11-29 01:48:48 UTC
Permalink
Author: amaury.forgeotdarc
Date: Sat Nov 29 02:48:47 2008
New Revision: 67443

Log:
Fix more threading API related bugs: Thread.get_name() --> Thread.name.

Seen when setting RPCHandler.debugging=True


Modified:
python/branches/py3k/Lib/idlelib/rpc.py
python/branches/py3k/Lib/idlelib/run.py
python/branches/py3k/Misc/NEWS

Modified: python/branches/py3k/Lib/idlelib/rpc.py
==============================================================================
--- python/branches/py3k/Lib/idlelib/rpc.py (original)
+++ python/branches/py3k/Lib/idlelib/rpc.py Sat Nov 29 02:48:47 2008
@@ -106,7 +106,7 @@
erf = sys.__stderr__
print('\n' + '-'*40, file=erf)
print('Unhandled server exception!', file=erf)
- print('Thread: %s' % threading.current_thread().get_name(), file=erf)
+ print('Thread: %s' % threading.current_thread().name, file=erf)
print('Client Address: ', client_address, file=erf)
print('Request: ', repr(request), file=erf)
traceback.print_exc(file=erf)
@@ -149,7 +149,7 @@
def debug(self, *args):
if not self.debugging:
return
- s = self.location + " " + str(threading.current_thread().get_name())
+ s = self.location + " " + str(threading.current_thread().name)
for a in args:
s = s + " " + str(a)
print(s, file=sys.__stderr__)

Modified: python/branches/py3k/Lib/idlelib/run.py
==============================================================================
--- python/branches/py3k/Lib/idlelib/run.py (original)
+++ python/branches/py3k/Lib/idlelib/run.py Sat Nov 29 02:48:47 2008
@@ -230,7 +230,7 @@
erf = sys.__stderr__
print('\n' + '-'*40, file=erf)
print('Unhandled server exception!', file=erf)
- print('Thread: %s' % threading.current_thread().get_name(), file=erf)
+ print('Thread: %s' % threading.current_thread().name, file=erf)
print('Client Address: ', client_address, file=erf)
print('Request: ', repr(request), file=erf)
traceback.print_exc(file=erf)

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Sat Nov 29 02:48:47 2008
@@ -24,6 +24,9 @@
Library
-------

+- IDLE would print a "Unhandled server exception!" message when internal
+ debugging is enabled.
+
- Issue #4455: IDLE failed to display the windows list when two windows have
the same title.

Loading...