Adding a Par construct to Python?

Paul Rubin http
Thu May 21 04:30:18 EDT 2009

Carl Banks <pavlovevidence at> writes:
> Why?  Do you seriously not see the benefit of simplifying the work of
> extention writers and core maintainers?  You don't have to agree that
> it's a good trade-off but it's a perfectly reasonable goal.
> I highly suspect Aahz here would argue for a GIL even without the
> refcount issue, and even though I wouldn't agree, there's nothing
> weird or unreasonable about the argument, it's just a different
> viewpoint.

How about only setting a lock when a "safe" user extension is called.
There could also be an "unsafe" extension interface with no lock.  The
more important stdlib functions would be (carefully) written with the
unsafe interface.  Ordinary python code would not need a lock.  

More information about the Python-list mailing list