It is two lines less code without sacrificing readability.
It might be especially convenient for nested or consecutive code blocks. Compare:
try:
a()
try:
b()
except B:
pass
except A:
pass
vs.:
with suppress(A):
a()
with suppress(B):
b()
It also allows to express the intent:
with suppress(SpecificError): do_something()
says don't propagate the error if it is raised while doing something
try: do_something() except SpecificError: pass
says do something and don't propagate the error if it is raised
It is less important because most people won't notice the difference.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…