Antoine Pitrou <pit...@free.fr> added the comment: > 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). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14656> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com