[lxml-dev] [BUG] lxml-2* hangs on interpreter shutdown with gtk-mainloop
Stefan Behnel
stefan_ml at behnel.de
Wed Mar 19 08:00:12 CET 2008
Hi,
René 'Necoro' Neumann wrote:
> Stefan Behnel wrote:
> | René 'Necoro' Neumann wrote:
> |>> I attached a patch that also works for me and (again) seems to work
> |>> around the symptom you see.
> |> This patch only works for me when passing a filename or file to parse().
> |> When passing a StringIO instance it still hangs.
> |
> | True, didn't realise that in my tests.
> |
> | Here is another patch that seems to work better for me (still no idea
> why).
>
> I did not test the patch - but I guess it does not change anything, does
> it? It just replaces "try ... except" with "if ... is not None"
> constructs :)
It works better, as I said. At least for me. The function I changed is the
main difference between what works and what doesn't.
> Or is the "return None" important. Because StringIO instances have none
> of the tested attributes.
The "return None" was there before.
Stefan
More information about the lxml-dev
mailing list