Dan ther,,,ail.com wrote:
Would it be possible to have pychecker (or some such) warn that there
is an insufficient parameter count to start_new_thread? I guess that
would require knowing the type of thread. . .
I think this is the hub of the thing - its not only start_new_thread, but
the
Diez B. Roggisch [EMAIL PROTECTED] wrote:
Of course start_new_thread could throw an error if it got nothing callable
as first argument. No idea why it doesn't.
It does:
thread.start_new_thread(None, None)
Traceback (most recent call last):
File stdin, line 1, in ?
TypeError: first arg must be
Bjoern Schliessmann usenet-ourmet.com wrote:
Hendrik van Rooyen wrote:
Absolutely! - well spotted!
This is no threading problem at all; not even a syntax problem. If
you don't know exactly what start_new_thread and kbd_driver
functions do it's impossible to tell if your code does what is
Duncan Booth dunc...d.invalid wrote:
Given that the start_new_thread function never actually got called, what
code exactly do you expect to complain about the absence of a tuple?
I don't understand this assertion.
I thought that start_new_thread was called with a missing comma in
its
Hendrik van Rooyen wrote:
Duncan Booth dunc...d.invalid wrote:
Given that the start_new_thread function never actually got called, what
code exactly do you expect to complain about the absence of a tuple?
I don't understand this assertion.
I thought that start_new_thread was called
Diez B. Roggisch dee,,eb.de wrote:
Hendrik van Rooyen wrote:
It would have been nice, however, to have gotten something like:
TypeError - This routine needs a tuple.
instead of the silent in line calling of the routine in question,
while failing actually to start a new thread.
Hendrik van Rooyen wrote:
Bjoern Schliessmann usenet-ourmet.com wrote:
Hendrik van Rooyen wrote:
Absolutely! - well spotted!
This is no threading problem at all; not even a syntax problem. If
you don't know exactly what start_new_thread and kbd_driver
functions do it's impossible to
Hendrik van Rooyen [EMAIL PROTECTED] wrote:
It would have been nice, however, to have gotten something like:
TypeError - This routine needs a tuple.
instead of the silent in line calling of the routine in question,
while failing actually to start a new thread.
Given that the
Hendrik van Rooyen wrote:
Absolutely! - well spotted!
This is no threading problem at all; not even a syntax problem. If
you don't know exactly what start_new_thread and kbd_driver
functions do it's impossible to tell if your code does what is
intended.
It would have been nice, however, to
Hendrik van Rooyen wrote:
Dan the,,,ail.com wrote:
keyboard_thread = thread.start_new_thread(kbd_driver (port_q,kbd_q))
Needs to be
keyboard_thread = thread.start_new_thread(kbd_driver, (port_q,kbd_q))
Commas are important!
-Dan
Absolutely! - well spotted!
As the first
On Jan 16, 11:06 am, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Hendrik van Rooyen wrote:
Dan the,,,ail.com wrote:
keyboard_thread = thread.start_new_thread(kbd_driver (port_q,kbd_q))
Needs to be
keyboard_thread = thread.start_new_thread(kbd_driver, (port_q,kbd_q))
Commas are
Dan schrieb:
On Jan 16, 11:06 am, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Hendrik van Rooyen wrote:
Dan the,,,ail.com wrote:
keyboard_thread = thread.start_new_thread(kbd_driver (port_q,kbd_q))
Needs to be
keyboard_thread = thread.start_new_thread(kbd_driver, (port_q,kbd_q))
Commas are
On Jan 16, 1:33 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Dan schrieb:
On Jan 16, 11:06 am, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Hendrik van Rooyen wrote:
Dan the,,,ail.com wrote:
keyboard_thread = thread.start_new_thread(kbd_driver (port_q,kbd_q))
Needs to be
Dan schrieb:
On Jan 16, 1:33 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Dan schrieb:
On Jan 16, 11:06 am, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Hendrik van Rooyen wrote:
Dan the,,,ail.com wrote:
keyboard_thread = thread.start_new_thread(kbd_driver (port_q,kbd_q))
Needs to be
I thought I would share this nasty little gotcha with the group.
Consider the following code fragment:
start
print 'starting kbd thread'
keyboard_thread = thread.start_new_thread(kbd_driver (port_q,kbd_q))
print 'starting main loop'
error = Mainloop(s,port_q,active_q_list)
end
It produces, as
On Jan 15, 10:07 am, Hendrik van Rooyen [EMAIL PROTECTED]
wrote:
I thought I would share this nasty little gotcha with the group.
Consider the following code fragment:
start
print 'starting kbd thread'
keyboard_thread = thread.start_new_thread(kbd_driver (port_q,kbd_q))
print 'starting
Dan the,,,ail.com wrote:
keyboard_thread = thread.start_new_thread(kbd_driver (port_q,kbd_q))
Needs to be
keyboard_thread = thread.start_new_thread(kbd_driver, (port_q,kbd_q))
Commas are important!
-Dan
Absolutely! - well spotted!
As the first correct respondent, you win the
17 matches
Mail list logo