[Py] [Ideas] Small suggestion regarding type errors and subscription

2024-10-15 Thread James Parrott via Discussions on Python.org
If that line of code is broken up across two lines, the error will be more specific, and the bug simple to fix. Python one liners are superficially great, but only when they work. Debugging them and trying to understand them, not so much. --- [Visit Topic](https://discuss.python.org/t/s

[Py] [Python Help] Venv: `activate` script changes `$PATH` while executing the binary doesn't

2024-10-11 Thread James Parrott via Discussions on Python.org
"Should" is a strong word. Why not simply import the package and call the entry point directly? --- [Visit Topic](https://discuss.python.org/t/venv-activate-script-changes-path-while-executing-the-binary-doesnt/67580/9) or reply to this email to respond. You are receiving this because y

[Py] [Python Help] Venv: `activate` script changes `$PATH` while executing the binary doesn't

2024-10-11 Thread James Parrott via Discussions on Python.org
It's expected behaviour. To be able to run a command line tool globally, it could be installed with pipx. Pipx'll put it in its own venv, and add the tool's executable to the global path. --- [Visit Topic](https://discuss.python.org/t/venv-activate-script-changes-path-while-executing-th