2026-08-01 16:09 UTC
@treyhunner@mastodon.social @ambv@mastodon.social I seem to remember
raise ValueError, x
as alternative syntax for
raise ValueError(x)
that is you could pass a class and arguments separately, and it would construct an exception instance for you.
I don't remember builtin exceptions ever being variables with string values, but I only started with Python 2.1.
Replies (0)
No replies.