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 — Passing bytes to `tomllib.loads()` gives wrong error message · Issue #132655 · python/cpython Closed as not planned Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportEdit: It looks like this was fixed in #124587 but either regressed or that hasn't been released yet? It was merged October 2024. Bug description:If you call tomllib.loads(b'a="asdf"') ...you get a TypeError as expected, but the error message is wrong: The error message should be the reverse, something like "a string-like object is required, not 'bytes'". The bug is present on macOS with the following versions:
CPython versions tested on:3.13, 3.12, 3.11 Operating systems tested on:macOS Activity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-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. |