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

Turn RegistryEntries into an ABC and create subclasses for frozen and non-frozen cases. #738

Merged
merged 6 commits into from
Jan 14, 2025

Conversation

junkmd
Copy link
Collaborator

@junkmd junkmd commented Jan 14, 2025

The functionality of creating entries for both frozen and interpreter (non-frozen) COM servers within RegistryEntries coexists with complex conditional branching. This may be a reason for the lack of clarity in COM server registration.

To address this complexity, I separate the implementation into distinct subclasses for frozen and interpreter servers. Common entries are refactored into top-level functions to adhere to the DRY principle.

@junkmd junkmd added this to the 1.4.10 milestone Jan 14, 2025
@junkmd junkmd marked this pull request as draft January 14, 2025 14:17
junkmd added a commit to junkmd/pywinauto that referenced this pull request Jan 14, 2025
junkmd added a commit that referenced this pull request Jan 14, 2025
… and non-frozen cases (part1 of #738). (#739)

* Move `RegistryEntries` docstring.

* Add the `_Entry` type alias.
@junkmd junkmd force-pushed the interp_frozen_register branch from 841969f to ac1f426 Compare January 14, 2025 15:47
junkmd added a commit that referenced this pull request Jan 14, 2025
… and non-frozen cases (part2 of #738). (#740)

* Split functions.

* Improve the `HKCR` declarations.
@junkmd junkmd force-pushed the interp_frozen_register branch from ac1f426 to cfb8188 Compare January 14, 2025 16:14
junkmd added a commit that referenced this pull request Jan 14, 2025
… and non-frozen cases (part3 of #738). (#741)

* Update the `getattr`'s default parameter.

* Split more functions.

* Split `...local_ctx_entries`.
@junkmd junkmd force-pushed the interp_frozen_register branch from cfb8188 to 4b817b8 Compare January 14, 2025 23:16
junkmd added a commit that referenced this pull request Jan 14, 2025
… and non-frozen cases (part4 of #738). (#742)

* Split more functions.

* Split more functions.

* Small fix.
@junkmd junkmd force-pushed the interp_frozen_register branch from 4b817b8 to d3154e8 Compare January 14, 2025 23:38
@junkmd junkmd marked this pull request as ready for review January 14, 2025 23:51
@junkmd junkmd merged commit a1a19b7 into enthought:main Jan 14, 2025
50 checks passed
@junkmd junkmd deleted the interp_frozen_register branch January 14, 2025 23:54
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