Movatterモバイル変換
[0]ホーム
[Python-Dev] Add Py_SETREF and Py_XSETREF to the stable C API
Stefan Krahstefan at bytereef.org
Fri Nov 10 06:25:55 EST 2017
On Fri, Nov 10, 2017 at 12:09:12PM +1000, Nick Coghlan wrote:> I'm with Antoine on this - we should be pushing folks writing> extension modules towards code generators like Cython, cffi, SWIG, and> SIP, support libraries like Boost::Python, or safer languages like> Rust (which can then be wrapped with cffi), rather than encouraging> more bespoke C/C++ extensions modules with handcrafted refcount> management. There's a reason the only parts of>https://packaging.python.org/guides/packaging-binary-extensions/ that> have actually been filled in are the ones explaining how to use a tool> to write the extension module for you :)They will be slower and in my experience not easier to maintain -- quitethe opposite.Stefan Krah
More information about the Python-Devmailing list
[8]ページ先頭