[X2Go-Dev] Bug#989: Bug#989: pyhoca-gui fails to fall back to Gtk-2.0 notifications (pynotify)
Ondřej Grover
ondrej.grover at gmail.com
Thu Feb 4 18:07:17 CET 2016
Thank you for looking into this.
On Thu, Feb 4, 2016 at 5:49 PM, Mihai Moldovan <ionic at ionic.de> wrote:
>
> I've been looking around for a way to actually rollback a failing module
> import
> and came up with zit.
>
AFAIK that's not really possible in Python as of writing this, especially
with complicated binary modules.
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?
Kind regards,
Ondřej Grover
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20160204/d2b28386/attachment.html>
More information about the x2go-dev
mailing list