Re: [Cython] [cython-users] Problems with "private" functions/methods in Cython 3.0a2

2020-04-23 Thread Stefan Behnel
da-woods schrieb am 23.04.20 um 22:54: > 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 glo

Re: [Cython] [cython-users] Problems with "private" functions/methods in Cython 3.0a2

2020-04-23 Thread da-woods
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 fallba

Re: [Cython] [cython-users] Problems with "private" functions/methods in Cython 3.0a2

2020-04-23 Thread Stefan Behnel
da-woods schrieb am 23.04.20 um 20:47: > On closer inspection I believe both are following Python behaviour (and > thus behaving correctly). In Python any > `__name_preceded_by_double_underscores` used within a class ends up looking > up `_Classname__name_preceded_by_double_underscores`. Therefore

Re: [Cython] [cython-users] Problems with "private" functions/methods in Cython 3.0a2

2020-04-23 Thread da-woods
Hi, (Sent to both cython-devel and cython-users. However, I'm not subscribed to users I think, so please forward if it doesn't reach there). On closer inspection I believe both are following Python behaviour (and thus behaving correctly). In Python any `__name_preceded_by_double_underscores`

Re: [Cython] [cython-users] Problems with "private" functions/methods in Cython 3.0a2

2020-04-23 Thread Stefan Behnel
Hi, thanks for the very detailed report. I'm CC-ing cython-devel, but let's keep the discussion for this on the cython-users list. The background here is Github issue 1382 and PR 3123 https://github.com/cython/cython/issues/1382 https://github.com/cython/cython/pull/3123 This was newly merged