Roundup Robot added the comment:
New changeset 79231a12567a by Eli Bendersky in branch '3.3':
Issue #12322: clarify xpath reference for cases where the path reaches
ancestors of the start element. Also add missing markup for a None. Thanks to
patrick vrijlandt and Mike Hoy for the report and
Eli Bendersky added the comment:
Changes pushed. Thanks for the report and patches.
Mike - a note for the future: when you create an updated patch, create it anew
vs. a clean repo. Don't compound patches.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open -
Mike Hoy added the comment:
Mike - a note for the future: when you create an updated patch, create it
anew vs. a clean repo. Don't compound patches.
No problem, thanks for committing the patch. Wasn't aware that compounding
patches caused a problem.
--
Mike Hoy added the comment:
It doesn't look like there are any errors to document. I'm attaching a patch
that Patrick suggested.
--
keywords: +patch
Added file: http://bugs.python.org/file27481/issue12322_v1.diff
___
Python tracker
patrick vrijlandt added the comment:
To be complete: an xpath 'above' the start element returns None
Thanks for the patch!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12322
___
Mike Hoy added the comment:
In response to patrick vrijlandt last comment here's a patch. I also found a
few None keywords that didn't have `` around them.
--
Added file: http://bugs.python.org/file27500/issue12322_v2.diff
___
Python tracker
Eli Bendersky added the comment:
Thanks for the report, Patrick. Yes, documenting this limitation would make
sense. Have you tested to see how it behaves?
Anyhow, a patch would be welcome ;-)
--
stage: - needs patch
___
Python tracker
Mike Hoy added the comment:
Here is a link to our docs page with the info that needs to be changed:
http://docs.python.org/py3k/library/xml.etree.elementtree.html#supported-xpath-syntax
I was going to work on a patch but in irc we decided to wait to see what people
had to say about this. Also
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
keywords: +easy
nosy: +eli.bendersky
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12322
___
New submission from patrick vrijlandt patrick.vrijla...@gmail.com:
Python 3.2 supports ElementPath version 1.3. The relevant documentation is
http://effbot.org/zone/element-xpath.htm. It says:
.. (New in 1.3) Selects the parent element.
However, a CHANGES document says:
The engine also
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12322
___
___
Python-bugs-list mailing list
11 matches
Mail list logo