This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2013年05月15日 22:39 by jwilk, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| test-elementinterface.py | jwilk, 2013年05月15日 22:39 | |||
| elementinterface.diff | jwilk, 2013年05月15日 22:41 | review | ||
| Messages (7) | |||
|---|---|---|---|
| msg189319 - (view) | Author: Jakub Wilk (jwilk) | Date: 2013年05月15日 22:39 | |
The xml.etree.ElementTree module provides _Element and _ElementInterface as compatibility aliases for Element. However, in Python 3.3 if the _elementtree module is importable, these classes are not identical: Element is a C implementation, and _Element/_ElementInterface is a Python implementation. $ python3.2 test-elementinterface.py 141477524 141477524 141477524 $ python3.3 test-elementinterface.py 137248544 4144597188 4144597188 |
|||
| msg189320 - (view) | Author: Jakub Wilk (jwilk) | Date: 2013年05月15日 22:41 | |
The attached (untested) patch should fix the bug. |
|||
| msg189522 - (view) | Author: Eli Bendersky (eli.bendersky) * (Python committer) | Date: 2013年05月18日 15:03 | |
These "compatibility" names are likely to be remnants from the out-of-tree xml etree implementation before it made it into the stdlib. I think they can simply be removed in 3.4, as they're not documented anywhere. |
|||
| msg189534 - (view) | Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * (Python triager) | Date: 2013年05月18日 16:28 | |
+1 for deletion of them (even in 3.3.3). |
|||
| msg189559 - (view) | Author: Eli Bendersky (eli.bendersky) * (Python committer) | Date: 2013年05月18日 22:51 | |
> +1 for deletion of them (even in 3.3.3). Hmm, I don't think I agree. If someone relies on this thing for some obscure reason, breaking when the switch to 3.4 is made is still less abrasive than a break in a maintenance version. Since this isn't strictly a bug fix, I'm reluctant touching 3.3 |
|||
| msg189560 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2013年05月18日 22:54 | |
Agreed with Eli. We shouldn't remove names in bugfix versions. |
|||
| msg189604 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2013年05月19日 16:21 | |
New changeset 16a03959819a by Eli Bendersky in branch 'default': Issue #17988: remove unused alias for Element and rename the used one http://hg.python.org/cpython/rev/16a03959819a |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:45 | admin | set | github: 62188 |
| 2013年05月19日 16:21:48 | eli.bendersky | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2013年05月19日 16:21:01 | python-dev | set | nosy:
+ python-dev messages: + msg189604 |
| 2013年05月19日 16:20:45 | eli.bendersky | set | versions: - Python 3.3 |
| 2013年05月18日 22:54:03 | pitrou | set | nosy:
+ pitrou messages: + msg189560 |
| 2013年05月18日 22:51:26 | eli.bendersky | set | messages: + msg189559 |
| 2013年05月18日 16:28:26 | Arfrever | set | messages: + msg189534 |
| 2013年05月18日 15:03:22 | eli.bendersky | set | messages: + msg189522 |
| 2013年05月16日 13:55:34 | Arfrever | set | nosy:
+ Arfrever |
| 2013年05月15日 22:45:05 | ezio.melotti | set | nosy:
+ eli.bendersky stage: patch review type: behavior versions: + Python 3.4 |
| 2013年05月15日 22:41:27 | jwilk | set | files:
+ elementinterface.diff keywords: + patch messages: + msg189320 |
| 2013年05月15日 22:39:43 | jwilk | create | |