Interesting Thread Gotcha

Sion Arrowsmith siona at chiark.greenend.org.uk
Thu Jan 17 07:55:17 EST 2008


Diez B. Roggisch <deets at nospam.web.de> 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 callable

-- 
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
   "Frankly I have no feelings towards penguins one way or the other"
        -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump



More information about the Python-list mailing list