Is there a conventional manner for referencing argument identifiers in assertion messages? For example:
def func(x):
assert x > 0, "x must be positive"
or is it
def func(x):
assert x > 0, "'x' must be positive"
or possibly
def func(x):
assert x > 0, "`x` must be positive"
Calling func(-1)
on each of these returns the following, respectively:
>>> AssertionError: x must be positive
>>> AssertionError: 'x' must be positive
>>> AssertionError: `x` must be positive
Are there any conventions to this in Python software, or is it mostly irrelevant?