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

bpo-38525: Fix segfault when using reverse iterators of empty dict literals #16847

Closed
wants to merge 1 commit into from

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented Oct 19, 2019

This was a consequence of

commit f2a186712bfe726d54723eba37d80c7f0303a50b
Author: Inada Naoki <[email protected]>
Date:   Tue Mar 12 17:25:44 2019 +0900

    [bpo-30040](https://bugs.python.org/issue30040): new empty dict uses key-sharing dict (GH-1080)
    
    Sizeof new empty dict becomes 72 bytes from 240 bytes (amd64).
    It is same size to empty dict created by dict.clear().

and

commit 6531bf6309c8fda1954060a0fb5ea930b1efb656
Author: Rémi Lapeyre <[email protected]>
Date:   Tue Nov 6 01:38:54 2018 +0100

    [bpo-33462](https://bugs.python.org/issue33462): Add __reversed__ to dict and dict views (GH-6827)

together.

https://bugs.python.org/issue38525

@pablogsal
Copy link
Member Author

CC: @remilapeyre

@pablogsal
Copy link
Member Author

Closing this in favour of #16846

@pablogsal pablogsal closed this Oct 19, 2019
@pablogsal pablogsal deleted the bpo-38525 branch October 19, 2019 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants