Skip to content

Conversation

da-woods
Copy link
Contributor

@da-woods da-woods commented Dec 1, 2023

Fix conflicting names of cpdef enum to_py functions when the an enum with the name name exists in multiple modules. Instead use the cname to name the to_py function since we have already ensured that it is unique and mangled with the module name.

Possibly fixes #5860 (it definitely fixes a real bug, but that project has far too many dependencies for me to test, so who knows if it fixes that bug).

Fix conflicting names of cpdef enum to_py functions when the an
enum with the name name exists in multiple modules. Instead use
the cname to name the to_py function since we have already
ensured that it is unique and mangled with the module name.

Possibly fixes cython#5860 (it definitely fixes a real bug, but that
project has far too many dependencies for me to test, so who knows
if it fixes *that* bug).
@da-woods da-woods added this to the 3.0.7 milestone Dec 1, 2023
@da-woods da-woods changed the title Fix conflict enum to_py function with multiple modules Fix conflicting enum to_py function with multiple modules Dec 1, 2023
@EdwardSro
Copy link

@da-woods Unfortunately it doesn't fix #5860 :(

Copy link
Contributor

@scoder scoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@da-woods da-woods merged commit a2d7306 into cython:master Dec 11, 2023
@da-woods da-woods deleted the multiple-modules-same-enum branch December 11, 2023 18:57
da-woods added a commit that referenced this pull request Dec 11, 2023
Fix conflicting names of cpdef enum to_py functions when the an
enum with the name name exists in multiple modules. Instead use
the cname to name the to_py function since we have already
ensured that it is unique and mangled with the module name.

Possibly fixes #5860 (it definitely fixes a real bug, but that
project has far too many dependencies for me to test, so who knows
if it fixes *that* bug).
@da-woods
Copy link
Contributor Author

3.0.x commit e6490a6

rinarakaki pushed a commit to rinarakaki/cython that referenced this pull request Sep 25, 2024
Fix conflicting names of cpdef enum to_py functions when the an
enum with the name name exists in multiple modules. Instead use
the cname to name the to_py function since we have already
ensured that it is unique and mangled with the module name.

Possibly fixes cython#5860 (it definitely fixes a real bug, but that
project has far too many dependencies for me to test, so who knows
if it fixes *that* bug).
rinarakaki pushed a commit to rinarakaki/cython that referenced this pull request Sep 25, 2024
Fix conflicting names of cpdef enum to_py functions when the an
enum with the name name exists in multiple modules. Instead use
the cname to name the to_py function since we have already
ensured that it is unique and mangled with the module name.

Possibly fixes cython#5860 (it definitely fixes a real bug, but that
project has far too many dependencies for me to test, so who knows
if it fixes *that* bug).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] migration to cython3.0.5: redefinition of '__Pyx_Enum_<enum_name>_to_py
3 participants