|
Meta tags:
description=The itemsize returned in a memoryview of a ctypes array is now computed from the item type, instead of dividing the total size by the length and assuming that the length is not zero.
(cherry picked from commit 84bc6a4)
Co-authored-by: Eric Wieser wieser.eric@gmail.com
Issue: gh-76963;
Headings (most frequently used words):
gh, navigation, uh, oh, 10, 76963, pep3118, itemsize, of, an, empty, ctypes, array, should, not, be, 5576, 100451, footer, diff, view, menu, repository, there, are, no, files, selected, for, viewing, filter, by, extension,
Text of the page (most frequently used words):
file (25), view (20), and (18), github (16), this (13), line (12), applied (11), the (11), all (10), for (10), that (9), #itemsize (9), show (9), hidden (9), characters (9), unicode (9), pyobject (8), diff (8), ctypes (8), reload (8), you (7), suggestion (7), cannot (7), suggestions (7), code (7), changes (7), open (7), sign (7), not (6), while (6), dict (6), int (6), myself (6), type (6), number (6), bidirectional (6), _ctypes (6), pointer (6), c_short (6), security (5), comments (5), commit (5), expand (5), null (5), static (5), array (5), learn (5), about (5), loading (5), your (5), can (4), please (4), pull (4), from (4), change (4), elem_type (4), stg_dict (4), than (4), what (4), review (4), more (4), next (4), rst (4), c_float (4), c_double (4), there (4), files (4), 76963 (4), pep3118 (4), empty (4), should (4), support (4), copilot (4), community (3), navigation (3), request (3), add (3), batch (3), shape (3), ndim (3), format (3), pycdata_newgetbuffer (3), py_buffer (3), flags (3), return (3), stgdictobject (3), pycdata_item_type (3), original (3), contains (3), text (3), may (3), interpreted (3), compiled (3), differently (3), appears (3), below (3), editor (3), reveals (3), desktop (3), delete (3), edit (3), modules (3), additions (3), deletions (3), misc (3), news (3), core (3), builtins (3), 2018 (3), bpo (3), 32782 (3), ejvsfr (3), s_short (3), lib (3), test (3), test_pep3118 (3), hide (3), whitespace (3), was (3), error (3), page (3), nbsp (3), filter (3), commits (3), 100451 (3), 5576 (3), merged (3), python (3), account (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), build (3), contact (2), status (2), privacy (2), terms (2), footer (2), now (2), single (2), one (2), viewing (2), toggle (2), down (2), item_dict (2), self (2), pytype_stgdict (2), item_type (2), cdataobject (2), assert (2), are (2), 2795 (2), arrays (2), 176 (2), selected (2), apply (2), split (2), unified (2), failed (2), load (2), retry (2), jump (2), extension (2), dec (2), 2022 (2), tree (2), miss (2), islington (2), issue (2), insights (2), projects (2), actions (2), repository (2), cpython (2), signed (2), with (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, docs, 2026, inc, right, check, back, later, queued, merge, multi, pending, reviews, has, been, marked, resolved, outdated, must, existing, order, create, valid, applying, deleted, lines, supported, only, per, subset, closed, invalid, because, were, made, annotations, notes, internal, suboffsets, strides, size, b_size, 2812, 2834, py_type, py_ssize_t, pyobject_stgdict, else, proto, asserts, used, here, these, guaranteed, construction, pycarraytypeobject_check, find, innermost, returning, borrowed, reference, pymemberdef, pycdata_members, memoryview, constructed, them, rather, always, giving, value, length, report, correct, when, pointers, class, complete, structure, conversations, clear, filters, viewed, types, eric, wieser, 2208f6a, select, changed, checks, conversation, into, backport, 84bc6a4, mdickinson, already, clicking, agree, our, occasionally, send, related, emails, statement, service, free, its, maintainers, have, question, project, new, items, requests, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, collaboration, platform, menu, skip, content,
|