[Python-ideas] threading : AttributeE​rror: 'NoneType' object has no attribute 'start'

Tim Lesher tlesher at gmail.com
Mon Sep 12 09:53:51 CEST 2011

On Sun, Sep 11, 2011 at 22:54, Sagar Neve <nevesagar at gmail.com> wrote:
> Here is the code. Can somebody please help me. This is very urgent.

First off, python-ideas is not the right place to ask for programming
help--it's for suggesting changes to the Python language itself.  You
will have better results posting to a help site like

In your case, it looks like you want to create a thread, but "thr =
getFiles(fname)" is not doing that--it's just calling a function.

You probably want to change this to "thr =
threading.Thread(target=getFiles, args=(fname,))"
Tim Lesher <tlesher at gmail.com>

More information about the Python-ideas mailing list