On 2026-10-11, Lawrence D’Oliveiro <[email protected]> wrote:
> Here’s an example that matches the type of the match-expression (not
> its value) against various event subclasses:
>
>     events = iter(self.ws.events())
>     while True :
>         event = next(events, None)
>         if event == None :
>             break

Um.

Why would you do that and not:

    for event in self.ws.events():

?
-- 
https://mail.python.org/mailman3//lists/python-list.python.org

Reply via email to