Why assert is not a function?

Robert Latest boblatest at yahoo.com
Mon Mar 15 04:16:45 EDT 2021


Chris Angelico (and oters) wrote:

[interesting stuff]

I'm a late contributor here, but I'd just say: If you'd prefer a function for
assert, just define a function that does what you want and be done with it.
Much harder to do if assert() were a built-in function but you'd rather have a
keyword ;-)

robert


More information about the Python-list mailing list