<div dir="ltr">Thank you for looking into this.<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 4, 2016 at 5:49 PM, Mihai Moldovan <span dir="ltr"><<a href="mailto:ionic@ionic.de" target="_blank">ionic@ionic.de</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've been looking around for a way to actually rollback a failing module import<br>
and came up with zit.<br></blockquote><div>AFAIK that's not really possible in Python as of writing this, especially with complicated binary modules.</div><div>I think a solution might be to abandon the common Python EAFP idiom, because it assumes graceful failure without such ugly side-effects. However, I'm not sure what the LBYL alternative is in this case. But I think there should be one, possibly loading just some high-level gi module to list available APIs?</div><div><br></div><div>Kind regards,</div><div>OndÅ™ej Grover</div></div></div></div>