I’m new in python and I have a concurrent problem when using internal functions of importing libraries. The problem is that my code calculates different kinds of variables and in the last process they are saved into different files. But I have the same problem when reading and writing. This is an example code that works because is linear: But
Tag: thread-safety
Why does PyQt crashes without information? (exit code 0xC0000409)
I’m trying to develop a software with PyQt, but I often get stuck on software crashes without debug information (only the exit code 0xC0000409). I’m using QThread, and I wrote a system like this: I have crashes when I read/write serialEnabled in run() or in ConnDisconn(). I know that PyQt is not thread-safe and that a wrong handling of variables
how can i safely write to a file when using Flask?
I need to write a method on a Flask server which will write part of the request to a log file. However, if I understand correctly, Flask is multi-threaded, and there’s a good chance that writing to a file is not safe. Admittedly, I am more or less new to Python and multi-threaded programming in general, so I need someone
Is python zipfile thread-safe?
In a django project, I need to generate some pdf files for objects in db. Since each file takes a few seconds to generate, I use celery to run tasks asynchronously. Problem is, I need to add each file to a zip archive. I was planning to use the python zipfile module, but different tasks can be run in different