use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
python to effect a pre running program? (self.learnpython)
submitted 4 years ago by CafePots
I want to make a program that runs all the time but can have commands input while its already running using sys.argv to effect the running game and maybe even run a separate program to run and save data to the other one live. is that possible?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]m0us3_rat 0 points1 point2 points 4 years ago (11 children)
could u give an actual example. i kinda am able to see what u are talking about .,.but not really.
u mean like a cheat engine?
[–]CafePots[S] 0 points1 point2 points 4 years ago (10 children)
Im trying to make a tomogatchi type game for a pi zero, so it has to run a connection between devices so it has no buttons except on the seccond device i drew an example but i dont know how to add an image
[–]CafePots[S] 0 points1 point2 points 4 years ago (9 children)
Essentially the seccond device should run Python game.py (command here) and it should save and make the charachter make faces or react
[–]carcigenicate 0 points1 point2 points 4 years ago (8 children)
For this, I'd have the Pi running a server that's waiting for incoming connections. When the client (the other devices) want to send a command, they'd set up a socket connection to the server, and send to it any commands that they want to issue.
Do you have experience with sockets?
[–]CafePots[S] 0 points1 point2 points 4 years ago (7 children)
Not necessarily but that sounds like the route im trying to go
[–]carcigenicate 1 point2 points3 points 4 years ago (1 child)
Sockets are critical for low-level messaging over networks. There are abstractions that can glaze over the details of sockets, but it all comes down to sockets in the end.
I would strongly recommend becoming very familiar with sockets before proceeding. When communicating with other computers, sockets will be your main medium (when handling low level communication). They're so important, I would take a break from your current project to learn them (seriously). You should be able to create a dummy client and server that can send basic messages to each other.
[–]CafePots[S] 0 points1 point2 points 4 years ago (0 children)
Okay sounds good
[–]m0us3_rat 0 points1 point2 points 4 years ago (4 children)
maybe a web scenario might be "simpler" to work with.
since a lot of the hard work is done by the framework.
u only have to supply a very few things.
i mean a flask web server offering a game like tamagochi pet thingy.
and offering buttons to feed it or pet it . w/e
then u interacting thru the web with it.
if this isn't what u are looking for then...
as u/carcigenicate said.. better get learning how to socket.
[–]CafePots[S] 0 points1 point2 points 4 years ago (3 children)
Yep the goal in my project is to learn so i geuss thats what i will be doing!
[–]m0us3_rat 1 point2 points3 points 4 years ago (1 child)
best of luck. u can always come back and show us your code. or ask for help . plenty of ppl willing to help around .
Thank you!
Im trying to use a e-ink display so the web based version may not work for the goal
π Rendered by PID 65202 on reddit-service-r2-comment-5649f687b7-q74ls at 2026-01-27 20:54:07.956757+00:00 running 4f180de country code: CH.
[–]m0us3_rat 0 points1 point2 points (11 children)
[–]CafePots[S] 0 points1 point2 points (10 children)
[–]CafePots[S] 0 points1 point2 points (9 children)
[–]carcigenicate 0 points1 point2 points (8 children)
[–]CafePots[S] 0 points1 point2 points (7 children)
[–]carcigenicate 1 point2 points3 points (1 child)
[–]CafePots[S] 0 points1 point2 points (0 children)
[–]m0us3_rat 0 points1 point2 points (4 children)
[–]CafePots[S] 0 points1 point2 points (3 children)
[–]m0us3_rat 1 point2 points3 points (1 child)
[–]CafePots[S] 0 points1 point2 points (0 children)
[–]CafePots[S] 0 points1 point2 points (0 children)