Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyObjC 11 code cleanups #618

Open
8 tasks
ronaldoussoren opened this issue Jul 16, 2024 · 1 comment
Open
8 tasks

PyObjC 11 code cleanups #618

ronaldoussoren opened this issue Jul 16, 2024 · 1 comment

Comments

@ronaldoussoren
Copy link
Owner

ronaldoussoren commented Jul 16, 2024

  • Check all invocations of PyObject_IsTrue, can return -1 on error.
  • Move framework bindings to vectorcall
  • Investigate all use of PyErr_Occurred, adjust internal API to avoid using it
  • Check all XXX comments
  • Audit contents of python-api-usage.h (add any new APIs used, mark unwanted APIs as unavailable)
  • - In "recent enough" versions of Python a number of singletons (Py_None, ...) are immortal and don't need reference count updates, use this to simplify code returning these values (should also be slightly faster in free threading builds).
  • Look into all access of the ob_refcnt field (Py_REFCNT and Py_SET_REFCNT)
  • Switch to PyTuple_Pack instead of PyTuple_New + PyTuple_SET_ITEM (where possible)
@cossor
Copy link

cossor commented Sep 13, 2024

documentation/example updates that reflect resolution of #275 are tasks that are appropriate for the next major release. these could become part of this issue after shortening its title.

offering to help, but my newest macOS is 11.7 and i've been late before :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants