Message 159794 - Python tracker
> I like the current > solution: assert(0) + return a almost valid value, but Antoine and > Benjamin don't like the "almost valid value" (and so prefer a fatal > error?). We may issue a warning instead of a fatal error (e.g. write a > message into stderr with fprintf ?) in release mode. If there's a bug, either an exception should be raised, or a fatal error. We should discourage warnings on stderr (the PHP approach).