2 Jul
2020
2 Jul
'20
6:57 p.m.
Assertions aren't guaranteed to be executed and thus should never be used where raising an error is required.
`else: raise SomeError('reason')` already has the desired effect, and it's
Hence *roughly* equivalent to. Perhaps for this reason the second version would be confusing and should not be used. plenty readable. If this is what people think then I don't have a problem with that and there is no need for change.