Hi. I'm trying to port gnome-doc-utils to Python 3 and found the following libxml 2 misuse.
Original code has the following function: https://gitlab.gnome.org/GNOME/gnome-doc-utils/blob/master/xml2po/xml2po/__init__.py#L313 The trickiest part are lines https://gitlab.gnome.org/GNOME/gnome-doc-utils/blob/master/xml2po/xml2po/__init__.py#L353 next = node.next node.replaceNode(newelem.copyNodeList()) node.next = next Which fails in Py3 as next is not a usual field, but a xmlCore property, which has getter, but no setters. This worked (by chance?) in Py2, but not now. Evident attempt to replace it with next = node.next node.replaceNode(newelem.copyNodeList()) node.addSibling(next) also fails, as it seems later calls to node.next doesn't return our next field. Does someone have any ideas how to fix this code? Best regards, Alexander Pyhalov, system administrator of Southern Federal University IT department _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml