[Zope] critical sections

Casey Duncan casey@zope.com
Mon, 08 Apr 2002 10:00:24 -0600


try:

from mutex import mutex

which will give you the mutex class of the mutex module.

hth,

Casey

alan milligan wrote:
> Hi,
> 
> Sorry that this is really a Python-specific problem, but I'm running 
> Python 2.1.2, and for the following stub:
> 
> 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???
> 
> I've even trolled the entire Python source code base, and there is 
> nowhere that this module is used for me to see how to constuct an instance.
> 
> Cheers, Alan
> 
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos: 
> http://photos.msn.com/support/worldwide.aspx
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>