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 — TimeoutError has errno and strerror attributes set to None · Issue #109601 · 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:According to the docs And the Is this a bug in how the import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.settimeout(0.1) try: s.connect(("10.10.10.10", 22)) except OSError as ex: print(repr(ex)) print(f"errno is {type(ex.errno)} - {ex.errno}") print(f"strerror is {type(ex.strerror)} - {ex.strerror}") # But the `FileNotFoundError` has the correct attributes are set import os try: os.listdir("non_existing_path") except OSError as ex: print(repr(ex)) print(f"errno is {type(ex.errno)} - {ex.errno}") print(f"strerror is {type(ex.strerror)} - {ex.strerror}") Ref: python/typeshed#9864 CPython versions tested on:3.11 Operating systems tested on:Linux Reacted by Sebastian Rittau, Alex Waygood, Avasam and Jeffrey Bosboom 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 01402520 — 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. |