Article View: news.software.nntp
Article #90744Re: A C library for the NNTP protocol?
From: Julien ÉLIE
Date: Fri, 08 Sep 2023 10:46
Date: Fri, 08 Sep 2023 10:46
27 lines
2652 bytes
2652 bytes
Hi Richard, >> Same thing for me as for the Python scripts and the web site in Python >> (using mod_wsgi) I wrote. The transition to Python 3 was easy. The >> only problem I ran into was to properly handle the literal strings >> that are taken as Unicode code points by default, contrary to Python >> 2. Once that mechanism is understood, decoding/encoding at the right >> places is easy. > > The C API changed a fair bit, with some things going away completely and > needing to be replaced. i.e extension module authors had a bit more work > to do than people working in pure Python. Indeed, it's far more work with the C API. I remember having added Python 3 support in INN a few years ago, and it was a bit of work, essentially for memoryview handling and Unicode: https://github.com/InterNetNews/inn/commit/f99cc6a4193b5ac75c0453c769bbc7c905d33015 I totally agree that for extension modules in general, the switch is complicated (INN does not use much of available Python C API). -- Julien ÉLIE « The best preparation for tomorrow is to do today's work superbly well. » (William Osler)
Technical Details
Message-ID:
<udeu1i$2l8hc$2@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<cuHJM.1091805$6Li6.85230@fx12.ams4> <BGMJM.1820980$Y1R7.419554@fx04.ams4> <374KM.14$5D9b.1@fx02.ams4> <874jk7yuwd.fsf@hope.eyrie.org> <64f905f6@news.ausics.net> <87zg1yycle.fsf@hope.eyrie.org> <IdiKM.146956$sOsa.81806@fx04.ams4> <87wmx17vug.fsf@hope.eyrie.org> <pJrKM.63951$9o89.12292@fx05.ams4> <87pm2t7hrl.fsf@hope.eyrie.org> <slrnufkv9u.446.jon+usenet@raven.unequivocal.eu> <871qf9gyq5.fsf@hope.eyrie.org> <udeg2u$2l2si$1@news.trigofacile.com> <wwvzg1xyvxp.fsf@LkoBDZeT.terraraq.uk>Show Full Headers
Complete Article Headers
Message-ID: <udeu1i$2l8hc$2@news.trigofacile.com> Subject: Re: A C library for the NNTP protocol? Date: Fri, 8 Sep 2023 12:46:10 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <cuHJM.1091805$6Li6.85230@fx12.ams4> <BGMJM.1820980$Y1R7.419554@fx04.ams4> <374KM.14$5D9b.1@fx02.ams4> <874jk7yuwd.fsf@hope.eyrie.org> <64f905f6@news.ausics.net> <87zg1yycle.fsf@hope.eyrie.org> <IdiKM.146956$sOsa.81806@fx04.ams4> <87wmx17vug.fsf@hope.eyrie.org> <pJrKM.63951$9o89.12292@fx05.ams4> <87pm2t7hrl.fsf@hope.eyrie.org> <slrnufkv9u.446.jon+usenet@raven.unequivocal.eu> <871qf9gyq5.fsf@hope.eyrie.org> <udeg2u$2l2si$1@news.trigofacile.com> <wwvzg1xyvxp.fsf@LkoBDZeT.terraraq.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cancel-Lock: sha1:IEDQIlG5fjaZLrraCjWAyU1fWe4= sha256:HG7MxdrhsdfG2hbU2vOEeP6q7F4YJQUijAS75WTY8FY= sha1:qDASBy3DkApYOZSRsWujEciu9Z0= sha256:CuxvfQvnpmRMpFHZMdgMaG0uVyMz9ayLHLVurXPS2Oc= In-Reply-To: <wwvzg1xyvxp.fsf@LkoBDZeT.terraraq.uk> Organization: Groupes francophones par TrigoFACILE User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Newsgroups: news.software.nntp Injection-Date: Fri, 8 Sep 2023 10:46:10 -0000 (UTC) Content-Type: text/plain; charset=UTF-8; format=flowed