[Python] What is the R's stop function equivalent in Python

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

  1. Stack

    Stack Membro Participativo

    I'm given a task of converting an R script to Python. I'm trying to understand the functionality.

    It is mentioned as below in the script.

    stop('The database argument must be supplied', call.=FALSE)


    Is this equal to Python's sys.exit? like

    sys.exit('The database argument must be supplied')


    And what is the meaning of call.=FALSE.

    I have gone through R documentation but couldn't relate to Pythonic terms.

    https://www.rdocumentation.org/packages/base/versions/3.6.1/topics/stop

    Continue reading...

Compartilhe esta Página