<div dir='auto'>(Please forgive the HTML email, sending from my phone)<div dir="auto"><br></div><div dir="auto">Given Python is effectively single-threaded through the global interpreter lock, this may turn out to be a total non-issue. Although I don't have an immediate answer for you I'd suggest starting by learning how Python's multi-threading support is more smoke and mirrors than reality. That may lead you to an answer to your question.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 16, 2023 1:55 AM, Jan Girlich <vollkorn@cryptobitch.de> wrote:<br type="attribution" /><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi,
<br>
<br>
I want to use the GPGME Python bindings in a concurrent way.
<br>
<br>
In the documentation of the Python bindings at
<br>
http://files.au.adversary.org/crypto/gpgme-python-howto.html I find no
<br>
mention of multithreading.
<br>
<br>
In the GPGME documentation at
<br>
https://www.gnupg.org/documentation/manuals/gpgme/Multi_002dThreading.html#Multi_002dThreading
<br>
I find the note, that I need to call "gpgme_check_version" before doing
<br>
any multithreaded operations.
<br>
<br>
Then again I find only this section about version checking in the
<br>
Python binding's documentation:
<br>
http://files.au.adversary.org/crypto/gpgme-python-howto.html#gpgme-version-check
<br>
In this section the version check is done via a subprocess call to
<br>
"gpgme-config --version".
<br>
<br>
Is the call to "gpgme_check_version" maybe done implicitly by the
<br>
Python bindings?
<br>
<br>
Do I have to call "gpgme-config --version" before to safely do
<br>
multithreaded operations with the Python bindings?
<br>
<br>
Thank you for any insights,
<br>
Jan
<br>
<br>
_______________________________________________
<br>
Gnupg-users mailing list
<br>
Gnupg-users@gnupg.org
<br>
https://lists.gnupg.org/mailman/listinfo/gnupg-users
<br>
<br>
</p>
</blockquote></div><br></div>