[Python-Dev] Re: Debugging of native extensions on windows

2023-03-14 Thread Eryk Sun
On 3/13/23, Rokas Kupstys wrote: > I eventually stumbled on to process list showing > ".venv/Scripts/python.exe" having spawned a subprocess... Which led me > to "PC/launcher.c" which is what ".venv/Scripts/python.exe" really is. For a standard Python installation, you can create a virtual

[Python-Dev] Re: Debugging of native extensions on windows

2023-03-14 Thread Steve Dower
On 3/14/2023 7:13 AM, Rokas Kupstys wrote: > Still, i think there can be an improvement in this area, and it would > likely be quite cheap. The biggest problem is people being unaware what > is going on. IsDebuggerPresent()/CheckRemoteDebuggerPresent() could be > used for checking debugger

[Python-Dev] Re: please consider changing --enable-unicode default to ucs4

2023-03-14 Thread Brett Cannon
Python no longer has `--enable-unicode` as part of `./configure`. On Tue, Mar 14, 2023 at 9:26 AM Jonathan Benson via Python-Dev < python-dev@python.org> wrote: > > > Sent from my iPhone > ___ > Python-Dev mailing list -- python-dev@python.org > To

[Python-Dev] Re: Debugging of native extensions on windows

2023-03-14 Thread Rokas Kupstys
As Steve suggested i think most friction-less path is to run python interpreter directly while specifying site-packages of virtualenv in PYTHONPATH. I already specify additional paths there anyway, since extensions are built with cmake and i wanted to achieve fast iteration times, being able

[Python-Dev] Re: please consider changing --enable-unicode default to ucs4

2023-03-14 Thread Jonathan Benson via Python-Dev
 Sent from my iPhone ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at

[Python-Dev] Re: Debugging of native extensions on windows

2023-03-14 Thread Christopher Barker
Is it easier to simply run python outside a virtualenv? They are great, but maybe when debugging an extension module, it's not so hard to just not use it :-) You also might want to give conda environments a try -- they include Python, so probably won't have the same issue. -CHB On Mon, Mar