Skip to main content
Advice
0 votes
6 replies
104 views

I am an amateur playing around with making simple games using Python and the Windows console through sys.stdout.write(). I am aware that this method of doing 'graphics' with printing ascii characters ...
RyanNewtonIV's user avatar
0 votes
2 answers
87 views

I am using Pycharm. When I click the "stop" button, the subprocess.Popen deletes the left over .bat files. But after putting the subprocess.Popen inside a threading.Thread function, the .bat ...
Rhys's user avatar
  • 5,408
4 votes
1 answer
146 views

I am developing an app to select and play a mp3 clip from a list. It will be run on a Pi4 with 7” touch display and piAMP+ hat. The GUI is in tkinter with pygame for the sound plus a pair of GPIO pins ...
Cheesehead's user avatar
3 votes
1 answer
311 views

Are python references atomic under concurrent access? Are dictionaries and lists thread-safe?
qouteall's user avatar
  • 113
-1 votes
1 answer
92 views

I am trying to start a Dialog including QListWidget. In this list every time a status is changed, the list should get a new line. At the end, if the backup process has finished, the dialog should ...
Stefan Bongers's user avatar
2 votes
1 answer
68 views

In this example, Tkinter GUI starts ThreadPoolExecutor. But ThreadPoolExecutor is inside a threading.Thread function. The thread function says it's finished before ThreadPoolExecutor has started ... ...
Rhys's user avatar
  • 5,408
0 votes
0 answers
51 views

I am running free-threaded python3.13t with PYTHON_GIL=0 on MacOS Sequoia 15.7. I create threads like this: thread = threading.Thread(target=lambda: time.sleep(10), name="test-thread") ...
Boris Burkov's user avatar
  • 14.7k
2 votes
1 answer
131 views

I'm running some serial commands to test connected devices under test (DUTs), & we have a need to run these in parallel/concurrently to speed up our tests. I would like some feedback on which ...
frimann's user avatar
  • 189
-1 votes
2 answers
135 views

We run a bunch of wireless controllers (mc's) and I want to use the controller API to transfer firmware via TFTP to each controller in preparation for an upgrade (the API call needs to be run on each ...
Guy Goodrick's user avatar
2 votes
1 answer
2k views

I'm encountering a persistent issue where importing the sentence_transformers library on macOS causes my Python script to hang indefinitely. When the script hangs, the only output I see is a low-level ...
Akash Dubey's user avatar
0 votes
1 answer
45 views

I am running a gunicorn server with 1 eventlet worker through which I communicate with the FE via websockets. However, I also need to listen to an external pod running some code that will emit a redis ...
Aitor Gastaminza Unanue's user avatar
0 votes
1 answer
95 views

I am using asyncio.StreamReader to continuously process line based communication like this: reader, writer = await asyncio.open_connection(host, port) while running: line = await reader.readline() ...
Dragoner's user avatar
  • 155
-1 votes
3 answers
81 views

I am running a script that listens for webhook on my local machine using the following pattern : from flask import Flask, request, abort app = Flask(__name__) @app.route("/", methods=["...
Sahasi's user avatar
  • 3
0 votes
2 answers
62 views

I have a Python function decorated with a 1-minute timeout. Inside it I spawn one or more worker threads that each run a 2-minute sleep via a dynamically executed script (using exec() in a custom ...
Vikash Rajput's user avatar
8 votes
2 answers
565 views

I'm working on an asynchronous Python application (using FastAPI/Starlette/asyncio) that needs to offload synchronous, CPU-bound tasks to a thread pool (ThreadPoolExecutor) to avoid blocking the event ...
Hemanth Hema Surya's user avatar

15 30 50 per page
1
2 3 4 5
275