-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversion function redefinition error when handling C++ types #3741
Comments
When I'm using Maybe somewhere Cython treats |
This looks like substantially the same issue as #3716 and #3734. The problem is where Cython utility code is itself generating utility code. Each lot of 2nd-level generated utility code is generated without access to the full module scope so can end up sharing names. I'll try to have a look at it in the near future. Although it looked trick to solve last time I looked |
My case is little complex, which mixed a lot of functions and cannot extracted to a small one. The repo is here, change this line from But this error does not bother me at the moment. |
I have a extension class which including C++ member (
std::vector<my_struct>
, andmy_struct
has somestd::pair<int, int>
members).And there also has a
std::pair<int, int>
type definition in the same source.I'm found that the conversion function (
std::pair<int, int>
totuple[int, int]
) is defined twice unless added@cython.auto_pickle(False)
on my extension class.I'm not clearly know how Cython checks the tool functions of
ctypedef
.In another case My extension members are sharing a same
ctypedef
with local variables, but this error is not occurred.The text was updated successfully, but these errors were encountered: