Skip to content

refactor: Port to multi-phase module init #545

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

Closed
wants to merge 1 commit into from

Conversation

tiran
Copy link
Member

@tiran tiran commented Nov 3, 2023

The _ldap module now uses modern multi-phase module initialization.

Replace LDAPadd_methods hack with proper PyMethodDef for module-level functions. The old approache is incompatible with multi-phase init. Module-level functions are now prefixed with LDAPMod_ and exported.

Use PyModuleDef_Slot to initialize the _ldap C extension.

See: #540

The `_ldap` module now uses modern multi-phase module initialization.

Replace `LDAPadd_methods` hack with proper PyMethodDef for
module-level functions. The old approache is incompatible with
multi-phase init. Module-level functions are now prefixed with
`LDAPMod_` and exported.

Use `PyModuleDef_Slot` to initialize the `_ldap` C extension.

See: python-ldap#540
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran tiran closed this Feb 12, 2024
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