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 — Use PyDict_Pop() · Issue #116437 · python/cpython

Use PyDict_Pop() #116437

New issue
Copy link
New issue
Copy link
Closed
Closed
Use PyDict_Pop()#116437
Copy link
Labels
3.13only security fixesonly security fixes

Description

@serhiy-storchaka
serhiy-storchaka
opened on Mar 6, 2024
Issue body actions

PyDict_Pop() can be used in two cases:

  • If the PyDict_Get* call is followed by the PyDict_Del* call.
  • If the PyDict_Del* call is followed by the code that handles KeyError.

In both cases the use of PyDict_Pop() can make the code clearer.

Linked PRs

  • gh-116437: Use new C API PyDict_Pop() to simplify the code #116438

Activity

  1. serhiy-storchaka
    added
    3.13only security fixesonly security fixes
    on Mar 6, 2024
  2. serhiy-storchaka
    added 2 commits that reference this issue on Mar 6, 2024

    pythongh-116437: Use new C API PyDict_Pop() to simplify the code

    b933bf8

    gh-116437: Use new C API PyDict_Pop() to simplify the code (GH-116438)

    72d3cc9
  3. serhiy-storchaka
    closed this as completedon Mar 7, 2024
  4. adorilson
    added a commit that references this issue on Mar 25, 2024

    pythongh-116437: Use new C API PyDict_Pop() to simplify the code (pyt…

    33c372d
  5. diegorusso
    added a commit that references this issue on Apr 17, 2024

    pythongh-116437: Use new C API PyDict_Pop() to simplify the code (pyt…

    9e1cf2f
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

    3.13only security fixesonly security fixes

    Projects

    No projects

      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.