GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Support complex (float/double) types in array.array and memoryview · Issue #146151 · python/cpython

Support complex (float/double) types in array.array and memoryview #146151

New issue
Copy link
New issue
Copy link
Closed
Closed
Support complex (float/double) types in array.array and memoryview#146151
Copy link
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement

Description

@skirpichev
skirpichev
opened on Mar 19, 2026
Issue body actions

Currently, we have support for this in the struct and the ctypes modules, working rather with heterogeneous binary data. Lets add these types to the array module as well ('F'/'D' type codes).

I think this feature can be available unconditionally, like for the struct module.

Linked PRs

  • gh-146151: support for complex arrays in the array module #146237
  • gh-146151: memoryview supports 'F' and 'D' format types (complex) #146241

Activity

  1. skirpichev
    self-assigned this
    on Mar 19, 2026
  2. skirpichev
    added
    type-featureA feature request or enhancementA feature request or enhancement
    extension-modulesC modules in the Modules dirC modules in the Modules dir
    on Mar 19, 2026
  3. serhiy-storchaka commented on Mar 19, 2026

    @serhiy-storchaka
    serhiy-storchaka
    on Mar 19, 2026
    Member
    More actions

    If this is supported in the struct module, there is no reasons to not support it in array.array and memoryview.

  4. skirpichev
    changed the title [-]Support complex (float/double) types in the array module[/-] [+]Support complex (float/double) types in array.array and memoryview[/+] on Mar 19, 2026
  5. skirpichev
    added a commit that references this issue on Mar 21, 2026

    pythongh-146151: support for complex arrays in the array module

    1afb3b9
  6. skirpichev
    removed their assignment
    on Mar 21, 2026
  7. skirpichev
    added a commit that references this issue on Mar 21, 2026

    pythongh-146151: memoryview supports 'F' and 'D' format types (complex)

    94ee023
  8. skirpichev commented on Mar 21, 2026

    @skirpichev
    skirpichev
    on Mar 21, 2026
    MemberAuthor
    More actions

    BTW, currently the lack of support for 'F'/'D' types in the memoryview looks as a documentation error, it references the struct module formatting types.

  9. vstinner
    added 2 commits that reference this issue on Mar 26, 2026

    gh-146151: memoryview supports 'F' and 'D' format types (complex) (#1…

    c68a194

    gh-146151: Add support for complex arrays in the array module (#146237)

    0e3b3b8
  10. vstinner commented on Mar 26, 2026

    @vstinner
    vstinner
    on Mar 26, 2026
    Member
    More actions

    I merged the two PRs (array and memoryview). I close the issue.

  11. vstinner
    closed this as completedon Mar 26, 2026
  12. clin1234
    added 2 commits that reference this issue on Apr 16, 2026

    pythongh-146151: memoryview supports 'F' and 'D' format types (comple…

    6735afa

    pythongh-146151: Add support for complex arrays in the array module (p…

    1ce9d54
  13. skirpichev
    added 2 commits that reference this issue on Apr 17, 2026

    Revert "pythongh-146151: Add support for complex arrays in the array …

    5c606ee

    Revert "pythongh-146151: memoryview supports 'F' and 'D' format types…

    760e2f0
  14. ljfp
    added 2 commits that reference this issue on Apr 25, 2026

    pythongh-146151: memoryview supports 'F' and 'D' format types (comple…

    03415bd

    pythongh-146151: Add support for complex arrays in the array module (p…

    0e7bf22
  15. github-project-automation
    moved this to Todo in Struct, memoryview and array issues 🏗️on Jul 13, 2026
  16. github-project-automation
    moved this from Todo to Done in Struct, memoryview and array issues 🏗️on Jul 13, 2026
  17. serhiy-storchaka
    added this to Struct, memoryview and array issues 🏗️on Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement

    Projects

    • Struct, memoryview and array issues 🏗️
      Status
      Done
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue 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.