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 — `compression.zstd.open()` names the wrong mode in its invalid mode error · Issue #161730 · python/cpython Open 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 reportBug description:
>>> import io >>> from compression import zstd >>> zstd.open(io.BytesIO(zstd.compress(b'x')), 'rtb') Traceback (most recent call last): ... ValueError: Invalid mode: 'rb'
text_mode = 't' in mode mode = mode.replace('t', '') if text_mode: if 'b' in mode: raise ValueError(f'Invalid mode: {mode!r}')
CPython versions tested on:3.14, 3.15, CPython main branch Operating systems tested on:Linux Linked PRsActivity
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 Projects
MilestoneRelationshipsDevelopmentIssue 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. |