News for hackers. Stuff that matters.
Re:Show HN: Python Source Code Refactoring Toolkit via AST by heavyset_go on Sunday August 01, 2021 @03:23PM (#28029067)
Projects that depend on CPython C extensions should consider migrating to HPy[1] for C extension compatibility across Python implementations.

[1] https://github.com/hpyproject/hpy

Re:Show HN: Python Source Code Refactoring Toolkit via AST by sitkack on Sunday August 01, 2021 @03:52PM (#28029289)
This looks interesting, but it also looks ambitious and not anywhere ready. Everyone would be well served for extensions to not be aware of Python internals and expose a clean handle based api to all users. For this, cffi is sufficient and already available across nearly all Python implementations.

https://cffi.readthedocs.io/en/latest/

I do agree that a standardized Python should have an object model that is a clean public contract, but given that Python is CPython and there is no standardization, that the library runtime is married to the core also makes this incredibly difficult politically.