[Python] Would python function any() iterate or just locate the item if used with a hashset

Discussão em 'Python' iniciado por Stack, Maio 29, 2025.

  1. Stack

    Stack Membro Participativo

    to clarify, it would be used like any(set()). I am asking for efficiency sake.

    Example: if any(fnmatch(a,b) for a in set) where a would be an item in a set and b would be a string.

    Continue reading...

Compartilhe esta Página