Hopefully I've succeeded in subscribing correctly so I can now post to both groups...

On 23/04/2020 21:32, Stefan Behnel wrote:
The question is: how bad is it for existing code, and how can we either
keep things working or make it easy for users to adapt? Should we implement
some kind of fallback lookup that still finds unmangled global names if
they exist?

I mean, double-underscore names are not entirely unheard of in C code and C
libraries. The Python behaviour redners their usage from within classes
more difficult.

I think this could actually be a real problem for people trying to interact with C libraries.  I'd favour a fallback that finds unmangled cdef/c names only (and maybe gives a helpful warning but no match if a Python name is found). That gives 100% compatibility on the Python side, but a sensible fallback on the C side.

_______________________________________________
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel

Reply via email to