8000 Removed broken DictWrapper and Event ordering comparisons by Avasam · Pull Request #300 · python-xlib/python-xlib · GitHub
[go: up one dir, main page]

Skip to content

Removed broken DictWrapper and Event ordering comparisons - #300

Open
Avasam wants to merge 1 commit into
python-xlib:masterfrom
Avasam:fix-dictwrapper-comparisons
Open

Avasam wants to merge 1 commit into
python-xlib:masterfrom
Avasam:fix-dictwrapper-comparisons

Conversation

@Avasam
@Avasam Avasam commented Oct 31, 2026 •
Copy link
Copy Markdown
Contributor

DictWrapper.__lt__/__gt__ and Event.__lt__/__gt__ compared the underlying dicts, which always raises TypeError on Python 3.
Removed them, so comparing these objects raises TypeError naming their own class instead.

Fixes #253

`DictWrapper.__lt__`/`__gt__` and `Event.__lt__`/`__gt__` compared the underlying dicts, which always raises `TypeError` on Python 3. Remove them, so comparing these objects raises `TypeError` naming their own class instead.

Fixes python-xlib#253
@Avasam Avasam changed the title Remove broken DictWrapper and Event ordering comparisons Removed broken DictWrapper and Event ordering comparisons Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DictWrapper comparisons make no sense (and crashes)

1 participant

0