[Python] max/min builtin functions depend on parameter order

Discussão em 'Python' iniciado por Stack, Março 20, 2025.

  1. Stack

    Stack Membro Participativo

    max(float('nan'), 1) evaluates to nan

    max(1, float('nan')) evaluates to 1

    Is it the intended behavior?

    Continue reading...

Compartilhe esta Página