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 — ctypes: array slice assignment replaces the value's `__len__` exception with a ValueError · Issue #161840 · python/cpython Open Labels extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-ctypestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportSummaryAssigning a sequence to a slice of a ctypes array calls Expected: the exception from Reproducerimport ctypes class BadLen: def __len__(self): raise KeyError("len raised") arr = (ctypes.c_int * 3)() arr[0:1] = BadLen() ValueError: Can only assign sequence of same sizeCPython versions tested on:CPython main branch Operating systems tested on:Linux Linked PRsActivity
MetadataMetadataAssigneesLabelsextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-ctypestype-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. |