This might be a silly question, but what's the best way to keep insert/delete/retrieve elements of an array in a multi-threaded Python application, but not keep the array global or assign an entire thread to keep track of the changes to that singl开发者_JS百科e array? It feels tiresome to pass the array to each function I use.
If you can't use globals, maybe you can use Qt's QThread class. You can use signals to access to the thread.
精彩评论