[issue40624] add support for != (not-equals) in ElementTree XPath

Antony Lee report at bugs.python.org
Thu May 14 07:25:02 EDT 2020


New submission from Antony Lee <anntzer.lee at gmail.com>:

It would be a small usability improvement if ElementTree's XPath support also supported the != (not-equals) operator.
I am specifically mentioning only != and not >/</... because != can be defined as the opposite of =, whereas other operators appear to run into questions of what to do with coercion of strings to numbers, etc.  (I guess that depends on the version of XPath, which may be a question we want to avoid for now.)

----------
components: XML
messages: 368829
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title: add support for != (not-equals) in ElementTree XPath
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40624>
_______________________________________


More information about the Python-bugs-list mailing list