pyobjc icon indicating copy to clipboard operation
pyobjc copied to clipboard

The Python <-> Objective-C Bridge with bindings for macOS frameworks

Results 159 pyobjc issues
Sort by recently updated
recently updated
newest added

I migrated a script that has been working fine under the system Python (3.6.8) to a venv (also based on system Python 3.6.8 but with its own site packages). One...

CPython API misuse can be hard to diagnose, especially reference counting. problems and forgetting to clear errors. Investigate using (custom?) tooling to automate checking: - Using annotations to document expected...

I've added development-support/validate-lcov.sh to check if LCOV pragma's (comments) are on the correct line. This should be a pre-commit plugin. - [ ] Move script to a separate repository with...

task

While trying to improve test coverage I found some unexpected behaviour that I cannot fully explain yet. This is captured in the PyObjCTest.ClassAndInstanceMethods in pyobjc-core. This is not necessarily a...

task

The "c-coverage" target in pyobjc-core/Makefile creates a coverage report for the C code when running pyobjc-core's test suite. That coverage could be a lot better. Current state: about 78% line...

Both classes can be part of reference loops, implement at least partial support for the GC protocol * set the correct GC flag * tp_traverse and tp_clear look at "PyObject*"...

enhancement

I got an assertion error about a negative refcount while running the pyobjc-core test suite using a python build that uses --with-pydebug. This is with the CPython trunk (3.11a5+).

bug

Appearently it is (once again?) possible to inherit from a non-class. That could make it more convenient to implement a protocol: Currently: ```python class MyObject (NSObject, protocols=[objc.protocolNamed("SomeProtocol")]): ... ``` Possible...

enhancement

In pyobjc-core: There are global variables and function-relative "static" variables in the C extension. These should be moved to a central struct, consider using module state for this (but take...

- have a .py file with `dialog = objc.IBOutlet()` in the root of it’s main class - open a .xib file and via "Add Files..." add the .py file -...