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 — gyp: list(dict) so we can del dict[key] while iterating by cclauss · Pull Request #2009 · nodejs/node-gyp

Conversation

@cclauss

@cclauss cclauss commented Dec 31, 2019

Copy link
Copy Markdown
Contributor

Fixes #1998

Checklist
  • npm install && npm test passes
  • tests are included
  • documentation is changed or added
  • commit message follows commit guidelines
Description of change

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cclauss
gyp: list(dict) so we can del dict(key) while iterating
403ecb5
Fixes #1998
@cclauss cclauss changed the title gyp: list(dict) so we can del dict(key) while iterating gyp: list(dict) so we can del dict[key] while iterating Dec 31, 2019
rvagg
rvagg approved these changes Jan 1, 2020
View reviewed changes
@rvagg

rvagg commented Jan 1, 2020

Copy link
Copy Markdown
Member

@cclauss any idea why this doesn't show up in our tests & linting and doesn't appear to be a widespread problem? Is it likely just some specific thing that an addon is doing with gyp that we're not covering that's hitting this code that's not normally hit?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cclauss

cclauss commented Jan 1, 2020

Copy link
Copy Markdown
Contributor Author

Agreed. It is a situation that must be happening rarely in the wild and not covered in our test cases.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

rvagg pushed a commit that referenced this pull request Jan 6, 2020
@cclauss @rvagg
gyp: list(dict) so we can del dict(key) while iterating
14f2a07
Fixes #1998

Reviewed-By: Rod Vagg <[email protected]>
PR-URL: #2009
@rvagg

rvagg commented Jan 6, 2020

Copy link
Copy Markdown
Member

landed 14f2a07

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rvagg rvagg closed this Jan 6, 2020
@rvagg
rvagg deleted the list(dict) branch January 6, 2020 03:20
rvagg pushed a commit that referenced this pull request Jan 6, 2020
@cclauss @rvagg
gyp: list(dict) so we can del dict(key) while iterating
e2bb23d
Fixes #1998

Reviewed-By: Rod Vagg <[email protected]>
PR-URL: #2009
@rvagg rvagg mentioned this pull request Jan 6, 2020
[email protected] Release Proposal #2013
Closed
rvagg pushed a commit that referenced this pull request Feb 3, 2020
@cclauss @rvagg
gyp: list(dict) so we can del dict(key) while iterating
103740c
Fixes #1998

Reviewed-By: Rod Vagg <[email protected]>
PR-URL: #2009
@rvagg rvagg mentioned this pull request Feb 3, 2020
[email protected] Release Proposal #2012
Closed
@cclauss cclauss mentioned this pull request Feb 21, 2020
Remove python 2.7 as requirement from the README.md #2052
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@rvagg rvagg rvagg approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Deleting a key from a dictionary while iterating over it raises an exception in Python 3

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@cclauss @rvagg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — 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.