[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-dev
Subject:    [Python-Dev] Mutex module
From:       "Facundo Batista" <facundobatista () gmail ! com>
Date:       2008-02-23 21:22:37
Message-ID: e04bdf310802231322lf5b770erc1620032054a4519 () mail ! gmail ! com
[Download RAW message or body]

Hi!

In today's bug day, an Argentinian colleague called my attention over
the issue 1746071.

This issue is about mutex:

"""The mutex module defines a class that allows mutual-exclusion via
acquiring and releasing locks. It does not require (or imply)
threading or multi-tasking, though it could be useful for those
purposes."""

The problem here is that mutex is NOT thread safe! Even when it says
in the docs that it could be useful for threading!

"Ok, let's make this mutex to be thread-safe", I thought, and my
colleague reviewed the proposed patch, even finding and submitting a
correction to it.

But two points prevented me for further work here:

- It has not test cases at all

- It does something that could be easily done (today) using parts from
the threading module.

There're some comments in that issue that points towards a deprecation
of this module.

So, I'm asking here. Is it still working in 3k? What are the plans
here? What do you think about this module? Is somebody using it?

Thank you all! Regards,

[1] http://bugs.python.org/issue1746071
[2] http://docs.python.org/dev/library/mutex.html

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev%40progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic