Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aeaUK-0004u8-Sf for pgsql-bugs@arkaria.postgresql.org; Sat, 12 Mar 2016 03:45:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aeaUK-0007mF-BZ for pgsql-bugs@arkaria.postgresql.org; Sat, 12 Mar 2016 03:45:12 +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.84) (envelope-from ) id 1aeaTh-0006xy-Kv for pgsql-bugs@postgresql.org; Sat, 12 Mar 2016 03:44:33 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aeaTe-0002uI-T0 for pgsql-bugs@postgresql.org; Sat, 12 Mar 2016 03:44:32 +0000 Received: from [IPv6:2001:41d0:fc94:4400:ca0a:a9ff:fe90:47fd] (unknown [IPv6:2001:41d0:fc94:4400:ca0a:a9ff:fe90:47fd]) (Authenticated sender: mlpo@mlpo.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 0F417172098; Sat, 12 Mar 2016 04:44:27 +0100 (CET) Subject: Re: BUG #13440: unaccent does not remove all diacritics To: Peter Eisentraut , Tom Lane References: <20150614063707.2734.30270@wrigleys.postgresql.org> <20150615045056.GM133018@postgresql.org> <38161.1434372933@sss.pgh.pa.us> <1790.1434492074@sss.pgh.pa.us> <4186.1434655846@sss.pgh.pa.us> <56A4426F.2040108@mlpo.fr> <56BCAA91.1040208@sigaev.ru> <56BCF7A5.6020204@mlpo.fr> <56BCF98B.3040302@mlpo.fr> <56BE0BE6.5050003@sigaev.ru> <56C4E11D.5050809@mlpo.fr> <56E17AAD.6080605@sigaev.ru> <56E18614.90003@mlpo.fr> <56E18841.2000406@mlpo.fr> <56E2F496.3020904@sigaev.ru> <56E2FD12.2000102@mlpo.fr> <29444.1457720165@sss.pgh.pa.us> <56E386CD.9000705@gmx.net> Cc: Teodor Sigaev , PostgreSQL Bugs From: =?UTF-8?Q?L=c3=a9onard_Benedetti?= Message-ID: <56E3909B.5060702@mlpo.fr> Date: Sat, 12 Mar 2016 04:44:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56E386CD.9000705@gmx.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 12/03/2016 04:02, Peter Eisentraut wrote: > On 3/11/16 1:16 PM, Tom Lane wrote: >> =?UTF-8?Q?L=c3=a9onard_Benedetti?= writes: >>> Despite all that, I think this transition to Python 3 is wise, it is >>> available since 2008. Python 2 is legacy and its last version (2.7) is a >>> “end-of-life releaseâ€�. >> Doesn't matter. We support both Python 2 and 3, and this script must >> do so as well, else it's not getting committed. Any desupport for >> Python 2 in PG is very far away; no one has even suggested we consider >> it yet. > This script is only run occasionally when the unaccent data needs to be > updated from Unicode data, so it's not really that important what > language and version it's written in. That said, the mentioned reason > for changing this to Python 3 is so that one can include Unicode > characters into the source text, which I find undesirable in general > (for PostgreSQL source code) and not very useful in this particular > case. I think the script can be kept in Python 2 style. Making it > upward compatible with Python 3 can be a separate (small) project. > I completely agree. This script does not have to be run regularly (as mentioned, just when the Unicode standard changes or characters of transliterator). Moreover, even when it should be done, users can wait for the next version of PostgreSQL where the rules file has already been updated. So, it is indeed a one-time shot, and the language of this script is not so important. However, concerning support for Unicode characters into the source code, version of Python does not change much (both versions support it). The change to Python 3 was rather done to anticipate the end of life of Python 2. But as has been pointed out by Tom Lane, it's not going to happen shortly (according to the PEP 0373: “The current plan is to support [Python 2] for at least 10 years from the initial 2.7 release. This means there will be bugfix releases until 2020.”). Furthermore, as I stated above, adaptation to Python 3 was quite trivial, and could be made easily in due course. So I think we can keep just a version for Python 2 for now. If everyone agrees, I'll update the files and patch. Léonard Benedetti -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs