[ python-Bugs-1523465 ] threading.Thread Traceback

SourceForge.net noreply at sourceforge.net
Sun Jul 16 21:18:15 CEST 2006


Bugs item #1523465, was opened at 2006-07-16 17:40
Message generated for change (Comment added) made by roee88
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1523465&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Threads
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: roee88 (roee88)
Assigned to: Nobody/Anonymous (nobody)
Summary: threading.Thread  Traceback

Initial Comment:
I'm using the following line in my application:
Thread(target = open_new(dest)).start()

dest is file path set by user.
Got this traceback with python 2.5:
File "C:\python25\lib\threading.py", line 460, in 
__boostrap
self.run()
File "C:\python25\threading.py, line 440, in run
self.__target(*self.__args, **self.kwargs)
TypeError: 'bool' object is not callable

Worked well with python 2.4 .
OS: windows XP 32 bit.
Searched for a similar bug report but couldn't find 
one, sorry if it already been reported.

----------------------------------------------------------------------

>Comment By: roee88 (roee88)
Date: 2006-07-16 19:18

Message:
Logged In: YES 
user_id=1111143

open_new is imported from webbrowser and it returns a 
boolean (True in that case).

This shouldn't conflict with the Thread target.
Just as a note, except for the Traceback everything works 
well. The dest does open.

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2006-07-16 19:01

Message:
Logged In: YES 
user_id=31435

What does `open_new` return?  What does

print type(open_new(dest))

display in a failing case?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1523465&group_id=5470


More information about the Python-bugs-list mailing list