Skip to content

ElementTree not preserving attribute order #78341

@rhettinger

Description

@rhettinger
BPO 34160
Nosy @rhettinger, @scoder, @vstinner, @nedbat, @ambv, @serhiy-storchaka, @matrixise, @JulienPalard, @Mariatta, @dfrojas
PRs
  • bpo-34160: Preserve user specified order of Element attributes #10163
  • bpo-34160: Preserve user specified order of Element attributes in html. #10190
  • bpo-34160: Preserves order of minidom of Element attributes #10219
  • bpo-34160: Make sorting attributes in XML serialization optional. #10452
  • bpo-34160: Update news entry for XML order attributes #12335
  • bpo-34160: Add the sort attribute to the xml.dom.minidom.Node.writexml method #12354
  • bpo-34160: explain how to deal with attribute order in ElementTree #14867
  • [3.8] bpo-34160: explain how to deal with attribute order in ElementTree (GH-14867) #14935
  • Files
  • test_xml_compare.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-04-09.18:13:16.463>
    created_at = <Date 2018-07-20.00:42:07.596>
    labels = ['easy', '3.8', 'type-feature', 'library', '3.9']
    title = 'ElementTree not preserving attribute order'
    updated_at = <Date 2019-07-24.18:33:05.914>
    user = 'https://github.com/rhettinger'

    bugs.python.org fields:

    activity = <Date 2019-07-24.18:33:05.914>
    actor = 'scoder'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-04-09.18:13:16.463>
    closer = 'scoder'
    components = ['Library (Lib)']
    creation = <Date 2018-07-20.00:42:07.596>
    creator = 'rhettinger'
    dependencies = []
    files = ['48217']
    hgrepos = []
    issue_num = 34160
    keywords = ['patch', 'easy']
    message_count = 86.0
    messages = ['321973', '321976', '321988', '328429', '328456', '328469', '328588', '328632', '328633', '328634', '328657', '328659', '328720', '328721', '328723', '328763', '328845', '328846', '328881', '329416', '329612', '329613', '329614', '329616', '329618', '329619', '329624', '329626', '329627', '329633', '329634', '329635', '329637', '329639', '329642', '329643', '329698', '329999', '330003', '330004', '330011', '330012', '330013', '330372', '330375', '332143', '337914', '337916', '337917', '337937', '338017', '338018', '338060', '338063', '338065', '338098', '338100', '338101', '338102', '338103', '338104', '338107', '338112', '338248', '338249', '338269', '338291', '338292', '338294', '338296', '338299', '338327', '338388', '339167', '339252', '339278', '339798', '340342', '340345', '340363', '340970', '347955', '347986', '348195', '348396', '348398']
    nosy_count = 12.0
    nosy_names = ['rhettinger', 'scoder', 'vstinner', 'nedbat', 'eli.bendersky', 'lukasz.langa', 'serhiy.storchaka', 'matrixise', 'sivert', 'mdk', 'Mariatta', 'dfrojas']
    pr_nums = ['10163', '10190', '10219', '10452', '12335', '12354', '14867', '14935']
    priority = None
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue34160'
    versions = ['Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of life3.9 (EOL)end of lifeeasystdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions