Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'restart': 0.09; 'windows,': 0.09; '~ethan~': 0.09; 'bug': 0.12; '"an': 0.16; '(modulo': 0.16; 'ah,': 0.16; 'filename:fname piece:signature': 0.16; 'fine.': 0.16; 'succeed)': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'skip:e 30': 0.24; 'developers': 0.25; 'this:': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'leave': 0.29; 'am,': 0.29; 'generally': 0.29; 'reporting': 0.29; 'code': 0.31; 'crash': 0.31; "d'aprano": 0.31; 'disabled': 0.31; 'steven': 0.31; 'file': 0.32; 'framework': 0.33; 'building': 0.35; 'charset:us-ascii': 0.36; 'reports': 0.37; 'application': 0.37; 'to:addr:python-list': 0.38; 'does': 0.39; 'quote': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'privacy': 0.61; 'received:173': 0.61; "you're": 0.61; 'you.': 0.62; 'more': 0.64; 'talking': 0.65; 'unknowingly': 0.84; 'wait,': 0.93 Date: Sun, 30 Nov 2014 11:34:59 -0800 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: I love assert References: <96c138e4-ab95-4e5f-a0c8-e696b5a926bb@googlegroups.com> <5CCdw.40818$9A7.12372@fx27.am4> <547921c9$0$13013$c3e8da3$5496439d@news.astraweb.com> <547ad2c9$0$13013$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <547ad2c9$0$13013$c3e8da3$5496439d@news.astraweb.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vIaKTUjo4R4dTXAcfL5db09gJu7NmWUTE" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 59 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417376107 news.xs4all.nl 2838 [2001:888:2000:d::a6]:42904 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81736 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --vIaKTUjo4R4dTXAcfL5db09gJu7NmWUTE Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On 11/30/2014 12:18 AM, Steven D'Aprano wrote: >=20 > Ah, wait, I see the reference. You're talking about the quote from Jame= s O > Coplien: >=20 > "An even more professional approach is to leave the assertions=20 > in the code when you ship, and to automatically file a bug report > on behalf of the end user and perhaps to try to re-start the=20 > application every time an assertion fails." >=20 >=20 > Sounds reasonable to me (modulo privacy considerations). Many modern > software already does this: Firefox, Windows, KDE all have forms of cra= sh > reporting that will automatically submit bug reports to the developers = for > you. And Firefox at least will try (and generally succeed) to automatic= ally > restart after a crash. The error-catching/reporting/restarting framework is fine. My assertion = (pun intended) is that building that framework on assert, which can be unknowingly disabled by the end-user, is foolish.= -- ~Ethan~ --vIaKTUjo4R4dTXAcfL5db09gJu7NmWUTE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJUe3FmAAoJENZ7D1rrH75NlcYQAMEIEcE24MRAN20wP6mS+Vpv tZsVdGoNI4RStEE9MPFoKPoaOAcQDSh+FKpv3bWW2IfznsiRkcTxutEqEpTOqvgx 60QOoiaTrBpcMVu58hrLkvxySMP/2Dqt6GxKIdKGvw9UK9A1t+0GDrJedv/zWDfu jy2UTaPPPrEc4cBKI0UxDgTUi2kgxsqhF8NggmMhE1JpNL7dc/6V/jfJpy8FFXwq /Un7dC+wLj0F+Uoema5CU+FJPci4APRocLGRcjCZIB/6GtmYHqbgsB7iQIvZg64X 7Zij4FhkuvXYLrcYQFyTDnwDrMaIaqWJVSymGMbqgEry+Ge3SFZde0EPiNmLD/Ic zhQydHpEsJKlxRd8ZGcAseXKtZ2sfBi6mYfgonRrrrA2ikDI8v/Skd6u3Y9+y1Ot 4bXe8pL1LNnnku+aQi9v8/ZwCGmUiSsk8+R6OWSFAioHSu3so68RfTDlJBCEPXwV JqqC7IW6hWyV3jlvQoDWooXrZn9rn46SjvrOFS1QNi4Nd8tBc9bAraqptFkq5Ngy b/0d0c/hQ6+4YJBlJo9YmI60o2JF/p/qnS1MChY/nBEh8j5tZQHu7JJ4AebnsXCg NKnNzagTsB9XY+IQ6TzaL0mD+AFwGfUR92BCI/5Hi9glS/F0RnU/SHBTpK0GcCYS 8et8iZfGq4s2Z3QvDP5o =bFTe -----END PGP SIGNATURE----- --vIaKTUjo4R4dTXAcfL5db09gJu7NmWUTE--