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

add _post_coinit subpackage #571

Merged
merged 5 commits into from
Jun 15, 2024
Merged

add _post_coinit subpackage #571

merged 5 commits into from
Jun 15, 2024

Conversation

junkmd
Copy link
Collaborator

@junkmd junkmd commented Jun 14, 2024

I have been working on reducing the weight of __init__.py since #559, but the number of files placed directly under comtypes/ has also increased.

During the initialization of the package, not all modules under comtypes/ are loaded, only a limited number of modules, such as GUID.py.
It can be difficult to see at a glance which modules are needed during initialization, which can create a new cognitive load.

With this change, to make it easier to understand what modules are needed during initialization by consolidating symbols that should be defined after the call to CoInitializeEx, or symbols where the order of definition does not matter during initialization, into the _post_coinit subpackage.

@junkmd junkmd added this to the 1.4.5 milestone Jun 14, 2024
junkmd added a commit to junkmd/pywinauto that referenced this pull request Jun 14, 2024
@junkmd junkmd merged commit 7325806 into enthought:main Jun 15, 2024
49 checks passed
@junkmd junkmd deleted the add_post_coinit branch June 15, 2024 00:46
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

Successfully merging this pull request may close these issues.

1 participant