Not the first time Xlib.display and Xlib.protocol.display is confused. My fault, as I named the stuff that way way back. It probably wont break people's code if the one in Xlib.protocol.display is renamed to something more intimidating.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1175208
Originator: NO
Ah, wrong import - there are two Displays (the one you picked implements protocol handling). Try:
>>> from Xlib.display import Display
>>> Display().sync()
Generally, you don't want to use anything from the .protocol classes.
Logged In: YES
user_id=68375
Originator: NO
Not the first time Xlib.display and Xlib.protocol.display is confused. My fault, as I named the stuff that way way back. It probably wont break people's code if the one in Xlib.protocol.display is renamed to something more intimidating.