[lxml] Re: What replaced xpath.evaluate() ?

2024-02-16 Thread Stefan Behnel
lpsm...@uw.edu schrieb am 16.02.24 um 00:38: I'm maintaining older code, which just broke because lxml took out xpath.evaluate(). The only note in the lxml changelog about it says it was 'redundant', meaning (I assume) that there's a better way to do the same thing, but there's no documentati

[lxml] Re: What replaced xpath.evaluate() ?

2024-02-16 Thread Xavier Morel via lxml - The Python XML Toolkit
The XPath object is callable, simply treat it as a function. On 2/16/24 00:38, lpsm...@uw.edu wrote: I'm maintaining older code, which just broke because lxml took out xpath.evaluate(). The only note in the lxml changelog about it says it was 'redundant', meaning (I assume) that there's a bet