> Assertions aren't guaranteed to be executed and thus should never be used where raising an error is required.
Hence *roughly* equivalent to. Perhaps for this reason the second version would be confusing and should not be used. > `else: raise SomeError('reason')` already has the desired effect, and it's plenty readable. If this is what people think then I don't have a problem with that and there is no need for change. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/IVITNVUCYEINEQKDDH4SNIF4O6OFJMYO/ Code of Conduct: http://python.org/psf/codeofconduct/