• Julian Andres Klode's avatar
    Do not override __hash__ in apt.package.Package · 5e90cca6
    Julian Andres Klode authored
    We do not override __eq__ so there's not much point overriding __hash__,
    and it actively breaks stuff: With cache reopening, the id of a package
    object can change, meaning that if you build a set of packages (p_set), then
    reopen, you might find that any(p not in p_set for p in p_set).
    
    LP: #1780099
    5e90cca6
Name
Last commit
Last update
..
data Loading commit data...
old Loading commit data...
__init__.py Loading commit data...
fakeroot-apt-key Loading commit data...
test_all.py Loading commit data...
test_apt_cache.py Loading commit data...
test_aptsources.py Loading commit data...
test_aptsources_ports.py Loading commit data...
test_auth.py Loading commit data...
test_cache_invocation.py Loading commit data...
test_configuration.py Loading commit data...
test_debfile.py Loading commit data...
test_debfile_multiarch.py Loading commit data...
test_deps.py Loading commit data...
test_group.py Loading commit data...
test_hashes.py Loading commit data...
test_hashsums.py Loading commit data...
test_large_file.py Loading commit data...
test_lp659438.py Loading commit data...
test_paths.py Loading commit data...
test_pep484.py Loading commit data...
test_policy.py Loading commit data...
test_progress.py Loading commit data...
test_pyflakes.py Loading commit data...
test_size_to_str.py Loading commit data...
test_sourcerecords.py Loading commit data...
test_tagfile.py Loading commit data...
test_utils.py Loading commit data...
testcommon.py Loading commit data...
testmanual_pep8.py Loading commit data...