GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — `Element.__init__` tag parameter has positional-only inconsistency · Issue #144846 · python/cpython Closed Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-XMLtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:
Python fallback: cpython/Lib/xml/etree/ElementTree.py Line 167 in 23c488d
tag accepts keyword arguments: Element(tag="foo") works. C accelerator: cpython/Modules/_elementtree.c Lines 419 to 420 in 23c488d
PyArg_ParseTuple only parses positional args, so tag is positional-only. Element(tag="foo") raises TypeError. Proposed fixSame pattern as the SubElement fix in gh-144270. ReproduceCPython versions tested on:CPython main branch Operating systems tested on:Linux Linked PRsActivity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-XMLtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |