Skip to content

Segmentation fault in reverse iterator #216

@tfpf

Description

@tfpf

Found a bug while working on #215.

Image

I know, very funny! (Not.)

from pysorteddict import *
d = SortedDict()
d["foo"] = ()
d["bar"] = [100]
d["baz"] = 3.14
for key in reversed(d.keys()):
    d[key] = "spam"
    d["z_" + key] = "eggs"
    if "foo" in d:
        del d["foo"]
print(d)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions