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 — _socket: `socket.sethostname()` reports a failed buffer export as an OS error, raising `SystemError` · Issue #161665 · python/cpython Open Labels extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-socketRelated to the socket, socketserver and selectors modulesRelated to the socket, socketserver and selectors modulestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportSummary
Reproducerimport os import socket class B(bytes): def __buffer__(self, flags): raise KeyError("boom") try: os.stat("/nonexistent") except OSError: pass socket.sethostname(B(b"h")) Traceback (most recent call last): File "min.py", line 23, in <module> socket.sethostname(B(b"h")) ~~~~~~~~~~~~~~~~~~^^^^^^^^^ SystemError: <class 'OSError'> returned a result with an exception set CPython versions tested on:3.15 Operating systems tested on:Linux Linked PRsActivity
MetadataMetadataAssigneesLabelsextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-socketRelated to the socket, socketserver and selectors modulesRelated to the socket, socketserver and selectors modulestype-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. |