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 1gALta-0001WY-Vv for psycopg@arkaria.postgresql.org; Wed, 10 Oct 2018 21:19:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gALtY-0001s8-ON for psycopg@arkaria.postgresql.org; Wed, 10 Oct 2018 21:19:52 +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 1gALtY-0001s0-Bb for psycopg@lists.postgresql.org; Wed, 10 Oct 2018 21:19:52 +0000 Received: from mail.dndg.it ([178.32.136.2]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gALtU-0000Ex-Up for psycopg@lists.postgresql.org; Wed, 10 Oct 2018 21:19:51 +0000 Received: from [192.168.1.101] (93-36-167-113.ip61.fastwebnet.it [93.36.167.113]) by mail.dndg.it (Postfix) with ESMTPSA id EBCD8A02A6 for ; Wed, 10 Oct 2018 21:25:12 +0000 (UTC) Subject: Re: Integration of Psycopg with XTA To: psycopg@lists.postgresql.org References: <1005537726.6324310.1538685211791@mail.yahoo.com> <602182297.6960405.1538755378178@mail.yahoo.com> <618fbba4-0f31-2e44-8517-a158cccbef0d@dndg.it> <1164838604.11237894.1539205855738@mail.yahoo.com> From: Federico Di Gregorio Organization: DNDG srl Message-ID: Date: Wed, 10 Oct 2018 23:19:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1164838604.11237894.1539205855738@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it-IT Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SURBL_BLOCKED, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/10/2018 11:10 PM, Christian Ferrari wrote: > By the way, PyMySQL/mysqlclient-python project > asked me to rename the > method from "get_native_conn()" to "_get_native_conn()". > > I'm not a "naming addicted person", but from the developer point of > view, using two different methods would be for sure not appreciated... > > xar1 = PostgresqlXaResource(rm1.get_native_connection(), "PostgreSQL", > "dbname=testdb") > xar2 = MysqlXaResource(rm2._get_native_connection(), "MySQL", > "localhost,0,lixa,,lixa") > > If you don't mind, I kindly ask you to wait a couple of days: I hope to > close the pull request > https://github.com/PyMySQL/mysqlclient-python/pull/269 shortly... I think that _if_ this should go cross-database a method without the underscore is better. The underscore usually means private and that's good as long as it is just that. An informal "standard" method name should not have the "_" in it. federico -- Federico Di Gregorio federico.digregorio@dndg.it DNDG srl http://dndg.it Gli esseri umani, a volte, sono destinati, per il solo fatto di esistere, a fare del male a qualcuno. -- Haruki Murakami