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

[Cython] Cython 3.0 alpha 2 released

2020-04-23 Thread Stefan Behnel
Hi all, here's the second alpha. I hope we got all major regressions fixed for this release that were reported since alpha 1. Download: https://pypi.org/project/Cython/3.0a2/ Changelog: https://github.com/cython/cython/blob/master/CHANGES.rst Have fun, Stefan Stefan Behnel schrieb am 12.04.2

Re: [Cython] Help with cygdb bug

2020-04-23 Thread Stefan Behnel
Hi Volker! Volker Weißmann schrieb am 22.04.20 um 20:44: > cy exec print(localvar) > > currently does not work. And I need your help to fix it. Do you mean "cy exec print(x)" or "cy print x" here? (The latter is what you used in your example at the end.) > If I'm not mistaken, the function "_f

[Cython] Help with cygdb bug

2020-04-23 Thread Volker Weißmann
Hello, cy exec print(localvar) currently does not work. And I need your help to fix it. If I'm not mistaken, the function "_fill_locals_dict" in libcython.py is supposed to find and set all local variables. The "for name, cyvar in iterator:" correctly iterates over all local variables, but cy