[issue17011] ElementPath ignores different namespace mappings for the same path expression

2013-12-06 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
resolution: fixed - duplicate

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17011
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17011] ElementPath ignores different namespace mappings for the same path expression

2013-12-06 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
resolution: duplicate - fixed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17011
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17011] ElementPath ignores different namespace mappings for the same path expression

2013-08-03 Thread Eli Bendersky

Eli Bendersky added the comment:

Fixed. Thanks!

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17011
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17011] ElementPath ignores different namespace mappings for the same path expression

2013-08-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 854ded9135c2 by Eli Bendersky in branch '3.3':
Issue #17011: Fix caching of xpath path when namespaces are present.
http://hg.python.org/cpython/rev/854ded9135c2

New changeset ce0be0d03c0a by Eli Bendersky in branch 'default':
Merge fix for Issue #17011 from 3.3
http://hg.python.org/cpython/rev/ce0be0d03c0a

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17011
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17011] ElementPath ignores different namespace mappings for the same path expression

2013-01-30 Thread Silverback Networks

Changes by Silverback Networks silverback...@gmail.com:


--
nosy: +silverbacknet

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17011
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17011] ElementPath ignores different namespace mappings for the same path expression

2013-01-22 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +eli.bendersky

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17011
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17011] ElementPath ignores different namespace mappings for the same path expression

2013-01-21 Thread Stefan Behnel

New submission from Stefan Behnel:

There's a bug originally report for lxml that also applies to ElementTree:

https://github.com/lxml/lxml/issues/95

Passing different namespace mappings into the Element.find*() methods will 
always reuse the first one due to incorrect caching based only on the literal 
path, not all parameters. My fix is here:

https://github.com/lxml/lxml/commit/8bafbdc13ffb4fb8436eda01594780aac4735528

The lookup performance regression when a namespace mapping is passed (sorting 
etc.) is acceptable as most use cases won't pass any namespaces anyway, so this 
is a problem that rarely shows in practice.

--
components: XML
messages: 180366
nosy: scoder
priority: normal
severity: normal
status: open
title: ElementPath ignores different namespace mappings for the same path 
expression
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17011
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17011] ElementPath ignores different namespace mappings for the same path expression

2013-01-21 Thread Stefan Behnel

Changes by Stefan Behnel sco...@users.sourceforge.net:


--
components: +Library (Lib) -XML

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17011
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17011] ElementPath ignores different namespace mappings for the same path expression

2013-01-21 Thread Stefan Behnel

Changes by Stefan Behnel sco...@users.sourceforge.net:


--
components: +XML

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17011
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17011] ElementPath ignores different namespace mappings for the same path expression

2013-01-21 Thread Stefan Behnel

Stefan Behnel added the comment:

Here is a test case (for lxml):

https://github.com/lxml/lxml/commit/76f2ee991afd15d4f8c98cee3e095967bbf9937f

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17011
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com