[Python] How to block calls to print?

Discussão em 'Python' iniciado por Stack, Agosto 5, 2025.

  1. Stack

    Stack Membro Participativo

    Is there a way to stop a function calling print?


    I created a pygame.joystick.Joystick object and in the actual loop of the game call its member function get_button to check for user input. The function also calls print, which slows down the game.

    Can I block this print call?

    Continue reading...

Compartilhe esta Página