Skip to content

add _post_coinit subpackage - #571

Merged
junkmd merged 5 commits into
enthought:mainfrom
junkmd:add_post_coinit
Jun 15, 2024
Merged

junkmd merged 5 commits into
enthought:mainfrom
junkmd:add_post_coinit

Conversation

@junkmd

@junkmd junkmd commented Jun 14, 2024

Copy link
Copy Markdown
Collaborator

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
@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