[Tutor] problem with threading module
Ignacio Vazquez-Abrams
ignacio@openservices.net
Wed, 12 Sep 2001 03:25:08 -0400 (EDT)
On Wed, 12 Sep 2001, lonetwin wrote:
> Hi everybody,
> Could someone please explain this:
> ###########################################################
> Python 2.0 (#1, Apr 11 2001, 19:18:08)
> [GCC 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)] on linux-i386
> Type "copyright", "credits" or "license" for more information.
> >>> import thread
> >>> import threading
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "./threading.py", line 12, in ?
> class TestThread(threading.Thread):
> AttributeError: Thread
> >>>
> #########################################################
> the threading module exists, and so does the definition of the Thread
> class.....I'm just learning about threading, so I'm clue-less right now
You have a local file called threading.py that is masking access to the
standard Python module of the same name.
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>