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 — Pyrepl (on Windows) crashes when running a script under hyperfine · Issue #133430 · python/cpython Closed as not planned Closed as not planned Copy link Labels OS-windowstopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:Create a simple program, something like print("hello") Run this under hyperfine, as Running with Python 3.13.2 (tags/v3.13.2:4f8bb39, Feb 4 2025, 15:23:48) [MSC v.1942 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\Gustav\AppData\Local\Programs\Python\Python313\Lib\_pyrepl\__main__.py", line 6, in <module> __pyrepl_interactive_console() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\Gustav\AppData\Local\Programs\Python\Python313\Lib\_pyrepl\main.py", line 59, in interactive_console run_multiline_interactive_console(console) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\Gustav\AppData\Local\Programs\Python\Python313\Lib\_pyrepl\simple_interact.py", line 143, in run_multiline_interactive_console statement = multiline_input(more_lines, ps1, ps2) File "C:\Users\Gustav\AppData\Local\Programs\Python\Python313\Lib\_pyrepl\readline.py", line 389, in multiline_input return reader.readline() ~~~~~~~~~~~~~~~^^ File "C:\Users\Gustav\AppData\Local\Programs\Python\Python313\Lib\_pyrepl\reader.py", line 802, in readline self.handle1() ~~~~~~~~~~~~^^ File "C:\Users\Gustav\AppData\Local\Programs\Python\Python313\Lib\_pyrepl\reader.py", line 758, in handle1 event = self.console.get_event(block=False) File "C:\Users\Gustav\AppData\Local\Programs\Python\Python313\Lib\_pyrepl\windows_console.py", line 397, in get_event rec = self._read_input(block) File "C:\Users\Gustav\AppData\Local\Programs\Python\Python313\Lib\_pyrepl\windows_console.py", line 378, in _read_input raise WinError(GetLastError()) OSError: [WinError 0] The operation completed successfully. As far as I can tell, pyrepl seems to be detecting standard input as a console, when it's not (the hyperfine help text says that the default is to take input from " CPython versions tested on:3.13 Operating systems tested on:Windows Activity
MetadataMetadataAssigneesLabelsOS-windowstopic-replRelated to the interactive shellRelated to the interactive shelltype-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. |