Skip to content

segmentation fault when using __contains__ on a FAM values() #17

@flexatone

Description

@flexatone
>>> import automap
>>> am = automap.AutoMap(('a', 'b'))
>>> test = []
>>> test in am.values()
False
>>> test
[]
>>> print(test)
Segmentation fault (core dumped)

This is due to calling Py_DECREF(other) in famv_contains(). This is corrected in my current branch (#16)

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