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 — Windows cpXXX codecs: StreamReader raises TypeError (decode() missing 'final') · Issue #158980 · python/cpython Open Labels 3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixesOS-windowstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:Since 3.14 (gh-123803), the import codecs, io text = 'привет' reader = codecs.getreader('cp20866')(io.BytesIO(text.encode('cp20866'))) print(reader.read() == text) Output: Traceback (most recent call last): File "repro.py", line 5, in <module> print(reader.read() == text) ~~~~~~~~~~~^^ File ".../Lib/codecs.py", line 512, in read newchars, decodedbytes = self.decode(data, self.errors) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ TypeError: create_win32_code_page_codec.<locals>.StreamReader.decode() missing 1 required positional argument: 'final' Expected output:
CPython versions tested on:CPython main branch (the 3.14 and 3.15 branches contain the same code) Operating systems tested on:Windows Linked PRsActivity
MetadataMetadataAssigneesLabels3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixesOS-windowstype-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. |