You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will require dropping Python 3.6 support, and will have to wait for the next major release.
PyObjC lazily loads data in the framework wrappers to reduce import time. This currently uses a "lazyimport" module that replaces the actual module in sys.modules. As of Python 3.7 it is possible to define __getattr__ and __dir__ at module scope instead.
This makes the code easier to understand and makes it easier to add extra code to framework wrappers.
The text was updated successfully, but these errors were encountered:
This implements a new function for loading a framework and
returning module level "__dir__" and "__getattr__" functions
and transitions the AVFoundation bindings to the new way of
working.
Next step will be to transition all other framework bindings.
ObjCLazyModule will stay around until PyObjC 11.
Issue #295
This rewrites the __init__.py of all framework bindings to
switch away from ObjCLazyModule to objc.createFrameworkDirAndGetattr.
A side effect of this is that those init files are now a
lot cleaner than before (e.g. cruft removal).
Also adds a test for validating the bundle identifier of
frameworks, and fixes those identifiers in a couple of bindings.
Closes#295 and closes#561.
This will require dropping Python 3.6 support, and will have to wait for the next major release.
PyObjC lazily loads data in the framework wrappers to reduce import time. This currently uses a "lazyimport" module that replaces the actual module in sys.modules. As of Python 3.7 it is possible to define
__getattr__
and__dir__
at module scope instead.This makes the code easier to understand and makes it easier to add extra code to framework wrappers.
The text was updated successfully, but these errors were encountered: