[Zope] critical sections
Jo Meder
jo@meder.de
Sun, 7 Apr 2002 00:45:49 +0200
Am 07.04.2002, 00:39 Uhr
schrub alan milligan <alan_milligan@hotmail.com>:
> import mutex
> lock = mutex()
>
> I get the following interpreter error:
>
> TypeError: object of type 'module' is not callable
>
> This IS extremely basic, but can someone tell me what is so special about
> this class???
Nothing, you just got the call wrong, as the error message you cited
explains. You're calling the module (which isn't callable) instead of
the class within the module.
Try "lock = mutex.mutex()" instead.
Jo.
--
Internetmanufaktur Jo Meder ---------------------- Berlin, Germany
http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33
Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45
10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97
Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt