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

Fix exception for del config[key] #7391

Merged
merged 2 commits into from Apr 4, 2024

Conversation

eriknw
Copy link
Contributor

@eriknw eriknw commented Apr 4, 2024

Also, make cfg.__setitem__ (a little) faster.

I forgot to update __delitem__ when I enabled strict=False option for configs.

Also, make `cfg.__setitem__` faster
Copy link
Member

@dschult dschult left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
Thanks!

@dschult
Copy link
Member

dschult commented Apr 4, 2024

oops -- spoke too fast -- The code looked good, but the tests show that something is wacky... Probably a regex issue.

@eriknw
Copy link
Contributor Author

eriknw commented Apr 4, 2024

Oh shoot. I ran the tests locally. Investigating/fixing now

@eriknw
Copy link
Contributor Author

eriknw commented Apr 4, 2024

fixed

Copy link
Contributor

@rossbar rossbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @eriknw !

@rossbar rossbar merged commit 754173b into networkx:main Apr 4, 2024
42 checks passed
@jarrodmillman jarrodmillman added this to the 3.3 milestone Apr 4, 2024
cvanelteren pushed a commit to cvanelteren/networkx that referenced this pull request Apr 22, 2024
* Fix exception for `del config[key]`

Also, make `cfg.__setitem__` faster

* Fix regex in test for Python 3.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

4 participants