Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow memoryview.toreadonly() #77357

Closed
pitrou opened this issue Mar 29, 2018 · 3 comments
Closed

Allow memoryview.toreadonly() #77357

pitrou opened this issue Mar 29, 2018 · 3 comments
Labels
3.8 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@pitrou
Copy link
Member

pitrou commented Mar 29, 2018

BPO 33176
Nosy @pitrou, @skrah, @pablogsal
PRs
  • bpo-33176 Add readonly mode to memoryviews #6314
  • bpo-33176: Add a toreadonly() method to memoryviews. #6466
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2018-04-14.17:49:49.020>
    created_at = <Date 2018-03-29.08:21:52.039>
    labels = ['interpreter-core', 'type-feature', '3.8']
    title = 'Allow memoryview.toreadonly()'
    updated_at = <Date 2018-04-14.17:49:49.019>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2018-04-14.17:49:49.019>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-04-14.17:49:49.020>
    closer = 'pitrou'
    components = ['Interpreter Core']
    creation = <Date 2018-03-29.08:21:52.039>
    creator = 'pitrou'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33176
    keywords = ['patch']
    message_count = 3.0
    messages = ['314637', '314700', '315299']
    nosy_count = 3.0
    nosy_names = ['pitrou', 'skrah', 'pablogsal']
    pr_nums = ['6314', '6466']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue33176'
    versions = ['Python 3.8']

    @pitrou
    Copy link
    Member Author

    pitrou commented Mar 29, 2018

    It may be useful to get a readonly view of a memoryview.

    @pitrou pitrou added 3.8 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Mar 29, 2018
    @pablogsal
    Copy link
    Member

    I have created an initial implementation in PR 6314.

    @pitrou
    Copy link
    Member Author

    pitrou commented Apr 14, 2018

    New changeset 480ab05 by Antoine Pitrou in branch 'master':
    bpo-33176: Add a toreadonly() method to memoryviews. (GH-6466)
    480ab05

    @pitrou pitrou closed this as completed Apr 14, 2018
    @pitrou pitrou changed the title Allow memoryview.cast(readonly=...) Allow memoryview.toreadonly() Apr 14, 2018
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants