Why assert is not a function?

Marco Sulla Marco.Sulla.Python at gmail.com
Mon Mar 1 17:51:02 EST 2021


I have a curiosity. Python, as many languages, has assert as a
keyword. Can't it be implemented as a function? Is there an advantage
to have it as a keyword?


More information about the Python-list mailing list