Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gC6tQ-0000zL-IC for psycopg@arkaria.postgresql.org; Mon, 15 Oct 2018 17:43:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gC6tO-0006lW-Rd for psycopg@arkaria.postgresql.org; Mon, 15 Oct 2018 17:42:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gC6tO-0006lM-Jw; Mon, 15 Oct 2018 17:42:58 +0000 Received: from mout.gmx.net ([212.227.17.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gC6tL-0005bz-PH; Mon, 15 Oct 2018 17:42:57 +0000 Received: from hermes ([84.165.103.215]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MKbZD-1gBqAw3s19-001zPY; Mon, 15 Oct 2018 19:42:50 +0200 Received: from hermes ([84.165.103.215]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MKbZD-1gBqAw3s19-001zPY; Mon, 15 Oct 2018 19:42:50 +0200 Received: from ncq by hermes with local (Exim 4.91) (envelope-from ) id 1gC6tE-0003vw-77; Mon, 15 Oct 2018 19:42:48 +0200 Date: Mon, 15 Oct 2018 19:42:48 +0200 From: Karsten Hilbert To: psycopg@lists.postgresql.org, psycopg@postgresql.org Subject: Re: Feature branches merged to master for 2.8 release Message-ID: <20181015174247.GF2008@hermes.hilbert.loc> Mail-Followup-To: psycopg@lists.postgresql.org, psycopg@postgresql.org References: <20181015121154.GC2008@hermes.hilbert.loc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Ma_X_il-Followup-to: d Re_X_turn-receipt-to: Karsten.Hilbert@gmx.net Di_X_sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_ority: 2 (High) User-Agent: Mutt/1.10.1 (2018-07-13) Sender: X-Provags-ID: V03:K1:HgFiDe/Mt2tu1EUVBcUlZwTCuuji0AyGFZ7BmUUBtAe9nNR4/uZ TYzYBdREHSS9h4TqrghHQvSQL6iy55aRifG0mWesoEJkJXpxfuZ1yxeZylOCsiGhL+JbIV1 iOroXCytPDfbgc0uWKfr0LIFQ7GUpC1/EmYaOynZ1ElMwk4VBXRebcKYVFZSVAlXPp+bTD0 KONArj/is1vUzNKriBuFA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:1VYIWuKB6sw=:HaoMMI+k+8lXuraEn73Fpu dmJlms2QB6LU+Wg5oi9h/9GOU1Si/zUgJZBax9Raol5SxVtwWSHMl4MIjyv0xuDCPo3VuT0A5 ns/e/emxU9eKO8Gfm8xcn1vjJ0xd2y5zjIJw1M0XTxJl1002NXsfWrgr/iKBPecKRDUKgVKgB xC5jOupBm7HwEv7xOmsfdYqPLiqVMhODsoGc4qYLnQZoucrxMmRanRqiVqwPwbXSeI1i0WuDm r06/x52ULLCYYg7i6uxTyBXTm1RbUOqt36cO64xsg2Y04FaY++fB+8Uhfi1vyLxV4jS3d0rcp jpJ5PyZo7AjnMVuaNY6AnNyDp2C+QMAMjJ+Tw0/7emwM/Qel8cDOzIHfDG45eO6fYTkRRNfFV 2IaDytvsw0ZC1zOEQtxDdr0QU6XCn0qt49qIOXqUku+fLb/4vB+Jp4xXqEFYUJvjapF9WXf74 DZeEZ/cXYHJTLi6r7x0LIjRyDL+NFfHPz1Lt2tEYazqdKFlbnkOlG3gAp6b7ISKX1M23d+/pn 5nEmAtrwTi8NynA7XWJrcbfhF456XryYU9LsVKzZXFmze1VBQkY9yMsMaztEcl58cV1srah6m +nV5j3C23+tGB7jKQ+ss9kY7La20GS3GXgdZKKGhkKBPgF8KweQCUHRKScs2vvfhp0+30Ov9l lqApsOB/55KZQALGE+o17oEsAKhU+tMtOyxzNV+HjynJ3pcQOH03tdyhea9SaMkp6ChLfAmxN yDAB5c6oSE4oZso2h5YZhZ9SsP8NWT8GEZ7UID2yU8GNbQ8mAHkoN2WRD3Nrp4GmE2DfuSwL3 p5h4YppsYoafLvYL6kyPq6AtkW0Rg== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Oct 15, 2018 at 06:23:57PM +0100, Daniele Varrazzo wrote: > I think it's responsible to make a decision. Having two names to refer > to a thing is confusing. One of the two would be the "blessed" one - > the one appearing in the tracebacks. And if a traceback says that > 'unique_violation' was raised, it would be weird to solve it by > writing a handler for 'UniqueViolation'. I would then stick with UniqueViolation. Perhaps an attribute UniqueViolation.pg_error_name = unique_violation so people _can_ know what to grep for ? Karsten -- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B