[issue34160] ElementTree not preserving attribute order

2019-07-15 Thread Diego Rojas


Diego Rojas  added the comment:

Victor, you mean place again this code? 
https://github.com/python/cpython/pull/10163/files#diff-d5a064acb6ae44dcb7e01fee148c733dR926

And the recipe proposed in https://bugs.python.org/issue34160#msg338102 place 
it as a method of ElementTree or just as a helper function?

--

___
Python tracker 
<https://bugs.python.org/issue34160>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34160] ElementTree not preserving attribute order

2019-03-15 Thread Diego Rojas

Diego Rojas  added the comment:

Stéphane, According to you PR, I agree that is a good approach give the option 
to the user if wants sorted or not the attributes. But in this thread, is 
discussed that there is not necessary and leaves as default that the attributes 
preserve the order.

--

___
Python tracker 
<https://bugs.python.org/issue34160>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34160] ElementTree not preserving attribute order

2019-03-14 Thread Diego Rojas


Change by Diego Rojas :


--
pull_requests: +12306

___
Python tracker 
<https://bugs.python.org/issue34160>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34160] ElementTree not preserving attribute order

2019-03-14 Thread Diego Rojas


Diego Rojas  added the comment:

Victor, I thought that the news changes were only for major changes. 

In another hand, I could retake this bug in a few days with the issues that you 
mentioned.

--

___
Python tracker 
<https://bugs.python.org/issue34160>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3991] urllib.request.urlopen does not handle non-ASCII characters

2019-02-20 Thread Diego Rojas


Change by Diego Rojas :


--
components: +Extension Modules -Library (Lib), Unicode
type: enhancement -> behavior
versions: +Python 3.4, Python 3.5, Python 3.6, Python 3.8

___
Python tracker 
<https://bugs.python.org/issue3991>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34160] ElementTree not preserving attribute order

2018-11-10 Thread Diego Rojas


Diego Rojas  added the comment:

Ned, exactly what test fails? I ran all the test suite in local and all was ok, 
even all passed in the CI build.

--

___
Python tracker 
<https://bugs.python.org/issue34160>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34160] ElementTree not preserving attribute order

2018-10-29 Thread Diego Rojas


Diego Rojas  added the comment:

Serhiy Storchaka, Raymond. I already made the 10219 PR. Preserves order in html 
Element attributes and minidom.

--

___
Python tracker 
<https://bugs.python.org/issue34160>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34160] ElementTree not preserving attribute order

2018-10-29 Thread Diego Rojas


Change by Diego Rojas :


--
pull_requests: +9535

___
Python tracker 
<https://bugs.python.org/issue34160>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34160] ElementTree not preserving attribute order

2018-10-28 Thread Diego Rojas


Diego Rojas  added the comment:

Raymond, sure. I could do the rest, I'll start tomorrow Monday.

--

___
Python tracker 
<https://bugs.python.org/issue34160>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34160] ElementTree not preserving attribute order

2018-10-26 Thread Diego Rojas


Diego Rojas  added the comment:

I'm working on this issue, but I have some questions:

1. If dump() function is only for debugging purpose, and since from dump() is 
where we will pass the sort_attrs keyword in False in order to conserve the 
order, I don't see how from dump() we can handle the order of the keyword 
arguments. The sorted occurs in line 926 
(https://github.com/python/cpython/blob/master/Lib/xml/etree/ElementTree.py#L926)
 and 
982(https://github.com/python/cpython/blob/master/Lib/xml/etree/ElementTree.py#L982)
 when xml or html are serialized. Or could we pass the sort_attrs to the 
functions _serialize_html/_serialize_xml and there handle this?

2. Just a comment, maybe sort_attrs is not ambiguous? For a user would be clear 
that sort_attrs will order the arguments in lexical order or maybe he/she could 
be confused and take it as that will respect the order of the keywords passed?

--
nosy: +dfrojas

___
Python tracker 
<https://bugs.python.org/issue34160>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com