79315673

Date: 2024-12-29 13:32:32
Score: 0.5
Natty:
Report link

Detour steps:

  1. Create virtual environment with default GIL enabled (non-free threaded) python interpreter, argument '--copies'.
python -mvenv --copies .venv
  1. Copy both python3.13t.exe and pythonw3.13t.exe (which ever required) from default interpreter path to venv\Scripts\ (virtual python interpreter location).
  2. Activate venv
.venv\Scripts\activate
  1. Use the interpreter whichever required.
    Running python in console will use GIL enabled interpreter and python3.13t will use experimental free-threading build as usual.

    Tried:
    Now outputs as expected.
python3.13t aiohttp_file.py

Note: I don't know how it works, just discovered it works.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Koushik Ghosh