PEP 788: Protecting the C API from Interpreter Finalization

Slight naming nit, PyInterpreterLock_AcquireView reads oddly to me, as it seems like it should be acquiring a view pointer from a lock pointer, rather than promoting a view pointer to a full lock pointer.

My suggestion would be to expand it to PyInterpreterLock_AcquireFromView. Alternatively, the Acquire verb could be replaced with From in both PyInterpreterLock_FromCurrent and PyInterpreterLock_FromView.

Aside from that, the updated terminology and the PEP as a whole looks good to me.

4 Likes