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
lektor.db.Record equality #1101
Comments
Agree, that does not seem right. We should probably fix that. I do get just a little queasy thinking about what subtle breakage might occur if we do. For grins, I tried changing A quick look, though, found set operations on pages being performed here: lektor/lektor/build_programs.py Lines 224 to 225 in 74bce90
Those set operations could be affected by a change to page equality semantics — though in this specific case I don't think it would make a difference. I don't think our tests currently have good coverage for this sort of thing, however. __hash__ is broken, tooLines 493 to 494 in 74bce90
Here, Lines 557 to 562 in 74bce90
This means that currently, two In other words, for |
Should two pages be equal even though the alt is different? I just stumbled upon this because I wanted to store source objects in a set but the hash and equality says it is the same object.
lektor/lektor/db.py
Lines 483 to 488 in 74bce90
The text was updated successfully, but these errors were encountered: