• Re: PYLAUNCH_DEBUG not printing info

    From Peter Otten@21:1/5 to Richard David on Thu Jun 9 10:40:05 2022
    On 09/06/2022 00:53, Richard David wrote:
    Why am I not getting debug output on my windows 10 machine:

    C:\temp>\Windows\py.exe -0
    -V:3.11 * Python 3.11 (64-bit)
    -V:3.10 Python 3.10 (64-bit)

    C:\temp>set PYLAUNCH_DEBUG=1

    C:\temp>\Windows\py.exe
    Python 3.11.0b3 (main, Jun 1 2022, 13:29:14) [MSC v.1932 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    ^Z


    Does getenv() confirm that the variable is set?

    import os
    os.getenv("PYLAUNCH_DEBUG")
    '1'

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Otten@21:1/5 to Richard David on Thu Jun 9 11:38:10 2022
    On 09/06/2022 00:53, Richard David wrote:
    Why am I not getting debug output on my windows 10 machine:

    C:\temp>\Windows\py.exe -0
    -V:3.11 * Python 3.11 (64-bit)
    -V:3.10 Python 3.10 (64-bit)

    C:\temp>set PYLAUNCH_DEBUG=1

    C:\temp>\Windows\py.exe
    Python 3.11.0b3 (main, Jun 1 2022, 13:29:14) [MSC v.1932 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    ^Z


    Looks like the variable is now called PYLAUNCHER_DEBUG:

    https://docs.python.org/3.11/using/windows.html#diagnostics

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eryk Sun@21:1/5 to Peter Otten on Thu Jun 9 08:28:32 2022
    On 6/9/22, Peter Otten <__peter__@web.de> wrote:

    Looks like the variable is now called PYLAUNCHER_DEBUG:

    https://docs.python.org/3.11/using/windows.html#diagnostics

    I wonder why Steve changed the name of the environment variable
    without supporting the old "PYLAUNCH_DEBUG" name, at least for a
    couple of releases. Since 3.11 is still in beta, with the first
    release candidate expected in August, there's still time to restore
    support for the old name.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)