python-discord / meta

Issue tracker for suggestions and other questions relating to our community
https://pythondiscord.com
31 stars 5 forks source link

New tag on double-clicking to run Python scripts #224

Closed n0Oo0Oo0b closed 10 months ago

n0Oo0Oo0b commented 10 months ago

Tag Name

double-click-to-run

What kind of content should the tag include?

A common question from beginners just starting out is "Why does my program instantly close when I open them?", which occurs because they double-click a Python script to run it rather than running it from a command line or IDE.

This tag could explain this behavior and contain instructions on how to run the script from a command line instead.

I also considered including the quick and dirty solution of appending input() to the script, but decided against it as it is just a workaround that does not solve the issue.

wookie184 commented 10 months ago

It might be hard to explain the correct alternative since the exact solution is dependant on a few things (e.g. OS, or editor/IDE), and instructions would depend on the users familiarity with a few things (e.g. do they even know what a command line is).

It could still be useful to explain why it's not the correct way of running things, and say what the correct way is but leaving the details to be explained by whoever invoked the tag or linking to an external resources.

wookie184 commented 10 months ago

Just noticed this is a duplicate of #206, lets move there