What is the R's stop function equivalent in Python

Viewed 832

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

0 Answers
Related