You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is actually an error in the manual. The manual says:
Listeners with no priority set are equivalent to priority 0 – you can use negative priorities to be called after these.
The second part of this is right -- you can use negative priorities to be called after priority zero. The first part is incorrect -- not specifying a priority is not the same as priority zero.
The docstring in the code is actually correct:
priority : The order in which to call event handlers if there are multiple for an event type. Should probably be an integer, where higher means to call it earlier. Do not specify if you don't care.
.. in other words, if you don't specify it, there are no assurances about its order.
Sorry for the confusion.
The POX manual is very likely going to be moving away from where it currently resides in the very near future... I have a local copy which will be the new basis, so I'll leave this issue open so that I remember to update that version.
When I raise an
EventName
event_handle_EventName_onetime
is called BEFORE_handle_EventName
even if the latter it has lower priority:It works fine only if I set manually the priority:
The text was updated successfully, but these errors were encountered: