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 — functools.singledispatch registration prioritizes the types of normal arguments before positional-only ones · Issue #143886 · python/cpython Open Labels 3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixesstdlibStandard 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:Decorator-based This means that a function of To reproduce: import functools @functools.singledispatch def f(arg, /, extra): return f"{arg}: undispatched type" @f.register def f_int(arg: int, /, extra: str): return f"{arg} is a {type(arg)} (dispatched by int)" @f.register def f_str(arg: str, /, extra: int): return f"{arg} is a {type(arg)} (dispatched by str)" print(f(None, "extra")) print(f(1, "extra")) print(f("s", "extra")) Result: Expected: CPython versions tested on:3.9, 3.10, 3.11, 3.12, 3.13, 3.14, CPython main branch Operating systems tested on:macOS Linked PRsActivity
MetadataMetadataAssigneesLabels3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixesstdlibStandard 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 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. |