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 — slice not hashable · Issue #84783 · python/cpython

slice not hashable #84783

New issue
Copy link
New issue
Copy link
Closed
Closed
slice not hashable#84783
Copy link
Assignees
gvanrossum
Labels
3.12only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)release-blockertype-featureA feature request or enhancementA feature request or enhancement

Description

WillBradshaw
mannequin
opened on May 12, 2020
Issue body actions
BPO 40603
Nosy @rhettinger, @stevendaprano, @remilapeyre, @isdanni
Files
  • patches.zip: patch to add slicing functionality to slices
  • 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 = None
    created_at = <Date 2020-05-12.01:23:39.253>
    labels = ['interpreter-core', 'easy', 'type-feature', '3.9']
    title = 'slice not hashable'
    updated_at = <Date 2020-05-12.08:34:03.335>
    user = 'https://bugs.python.org/WillBradshaw'

    bugs.python.org fields:

    activity = <Date 2020-05-12.08:34:03.335>
    actor = 'remi.lapeyre'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2020-05-12.01:23:39.253>
    creator = 'Will Bradshaw'
    dependencies = []
    files = ['49149']
    hgrepos = []
    issue_num = 40603
    keywords = ['easy (C)']
    message_count = 5.0
    messages = ['368693', '368694', '368696', '368700', '368708']
    nosy_count = 5.0
    nosy_names = ['rhettinger', 'steven.daprano', 'remi.lapeyre', 'isdanni', 'Will Bradshaw']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue40603'
    versions = ['Python 3.9']

    Linked PRs

    • GH-84783: Make the slice object hashable #101264
    • GH-84783: Document GH-101264 (Make the slice object hashable) in What's New. #102548
    • GH-84783: Mention Author for GH-101264 (make slices hashable) #103146

    Activity

    Next
    1. WillBradshaw commented on May 12, 2020

      @WillBradshaw
      WillBradshawmannequin
      on May 12, 2020
      MannequinAuthor
      More actions

      slice cannot be hashed which make some operations significantly more annoying. see https://groups.google.com/forum/#!topic/comp.lang.python/SvhkWwSDeIw

    2. WillBradshaw
      added
      type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
      topic-ctypes
      3.9 (EOL)end of lifeend of life
      on May 12, 2020
    3. stevendaprano commented on May 12, 2020

      @stevendaprano
      stevendaprano
      on May 12, 2020
      Member
      More actions

      Please re-upload the patch file as an uncompressed text file, as it is quite difficult for many people to view zip files in their browser.

    4. stevendaprano
      changed the title [-]slice does not slice[/-] [+]slice not hashable[/+] on May 12, 2020
    5. stevendaprano
      changed the title [-]slice does not slice[/-] [+]slice not hashable[/+] on May 12, 2020
    6. stevendaprano
      added
      interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
      type-featureA feature request or enhancementA feature request or enhancement
      and removed
      topic-ctypes
      type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
      on May 12, 2020
    7. 20 remaining items

    8. carljm
      added a commit that references this issue on Feb 22, 2023

      Merge branch 'main' into inlinecomp

      544b30c
    9. Yhg1s commented on Mar 9, 2023

      @Yhg1s
      Yhg1s
      on Mar 9, 2023
      Member
      More actions

      GH-102548 adds the missing What's New entry.

    10. Yhg1s
      reopened this on Mar 9, 2023
    11. Yhg1s
      added
      release-blocker
      on Mar 9, 2023
    12. ezio-melotti
      added this to Release and Deferred blockers 🚫on Mar 9, 2023
    13. github-project-automation
      moved this to Todo in Release and Deferred blockers 🚫on Mar 9, 2023
    14. Yhg1s
      added a commit that references this issue on Mar 9, 2023

      GH-84783: Document GH-101264 (Make the slice object hashable) in What…

      58d761e
    15. hauntsaninja commented on Mar 11, 2023

      @hauntsaninja
      hauntsaninja
      on Mar 11, 2023
      Contributor
      More actions

      What's New was merged, so I think this can be closed

    16. carljm
      closed this as completedon Mar 13, 2023
    17. github-project-automation
      moved this from Todo to Done in Release and Deferred blockers 🚫on Mar 13, 2023
    18. terryjreedy
      added a commit that references this issue on Mar 31, 2023

      GH-84783: Mention Author for GH-101264 (make slices hashable) (#103146)

      048d624
    19. warsaw
      added a commit that references this issue on Apr 11, 2023

      pythonGH-84783: Mention Author for pythonGH-101264 (make slices hasha…

      7ef1570
    20. asmeurer commented on Jul 16, 2023

      @asmeurer
      asmeurer
      on Jul 16, 2023
      More actions

      Thank you for fixing this.

      For anyone who was wanting hashable slices, my library ndindex may be of interest. It has a hashable Slice object but it also does a lot more like slice arithmetic which may be useful for a lot of the use cases described here.

    21. vEpiphyte
      added 2 commits that reference this issue on Sep 25, 2023

      3.12 Account for slice objet being hashable python/cpython#84783

      076e6c3

      3.12 Account for slice objet being hashable python/cpython#84783

      27ca40d
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    • @gvanrossum
      gvanrossum

    Labels

    3.12only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)release-blockertype-featureA feature request or enhancementA feature request or enhancement

    Projects

    • Release and Deferred blockers 🚫
      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.