[New-bugs-announce] [issue7368] Internal error in threading.py

JoostBehrends report at bugs.python.org
Fri Nov 20 14:22:49 CET 2009


New submission from JoostBehrends <joost at h-labahn.de>:

On Nov.20, 2009 i got the traceback below from Python 3.1.1 under
WindowsXP-SP3, as several times before. From code with 

def _core(func, my_args):
    A = Thread(target = func, args = my_args); A.start(); A.join()
_core(ask_user, (question, default_answer))

Doesn't matter from what, the traceback is showing no calling line (thus
there is at least a slip in threading.py's exception handlers):

Unhandled exception in thread started by <bound method Thread._bootstrap
of <Thread(Thread-1, stopped 288)>>
Traceback (most recent call last):
  File "D:\Programme\Python31\lib\threading.py", line 482, in _bootstrap
    self._bootstrap_inner()
  File "D:\Programme\Python31\lib\threading.py", line 558, in
_bootstrap_inner
    self._stop()
  File "D:\Programme\Python31\lib\threading.py", line 569, in _stop
    self._block.notify_all()
  File "D:\Programme\Python31\lib\threading.py", line 273, in notify_all
    self.notify(len(self._waiters))
  File "D:\Programme\Python31\lib\threading.py", line 265, in notify
    for waiter in waiters:
TypeError: function takes exactly 1 argument (0 given)

----------
components: Library (Lib)
messages: 95539
nosy: 3Jane
severity: normal
status: open
title: Internal error in threading.py
type: compile error
versions: Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7368>
_______________________________________


More information about the New-bugs-announce mailing list