Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news.uzoreto.com!aioe.org!bofh.it!news.nic.it!robomod From: Andreas Tille Newsgroups: linux.debian.maint.python Subject: Re: TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties) Date: Fri, 12 Oct 2018 14:50:01 +0200 Message-ID: References: X-Original-To: Chris Lamb X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Oct 12 12:44:56 2018 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: NeoMutt/20170113 (1.7.2) X-Mailing-List: archive/latest/16414 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20181012124426.37nixbp2qupadu4o@an3as.eu Approved: robomod@news.nic.it Lines: 62 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python@lists.debian.org, David Paleino , Federico Ceratto , Picca =?iso-8859-1?Q?Fr=E9d=E9ric-Emmanuel?= X-Original-Date: Fri, 12 Oct 2018 14:44:26 +0200 X-Original-Message-ID: <20181012124426.37nixbp2qupadu4o@an3as.eu> X-Original-References: <20181011110643.hrxkvpfyzj4jjqeb@an3as.eu> <20181012061902.mf7vngqnwvxdge2s@an3as.eu> <20181012111533.4ym6loirbvnr2fnx@an3as.eu> <1539343938.2065153.1539680744.792D0909@webmail.messagingengine.com> Xref: csiph.com linux.debian.maint.python:10984 Hi Chris, On Fri, Oct 12, 2018 at 12:32:18PM +0100, Chris Lamb wrote: > > > > File "/usr/lib/python2.7/dist-packages/uncertainties/core.py", line 946, in > > > ord(sup): normal for (normal, sup) in list(TO_SUPERSCRIPT.items())} > > Please always provide a minimal testcase, otherwise people have to do a > lot of work simply to get where you are.. Hmmm, I've thought the "test case" I've given in my first mail, just doing from uncertainties import core would be sufficient. > Under Python 2.x, list(TO_SUPERSCRIPT.items()) is: > > [(43, '\xe2\x81\xba'), > (45, '\xe2\x81\xbb'), > (48, '\xe2\x81\xb0'), > […] > ] > > ie. strings with a length of 3 whilst ord() takes a single char. These > should therefore be probably defined as: > > TO_SUPERSCRIPT = { > 0x2b: u'⁺', > 0x2d: u'⁻', > […] > > .. instead, but I haven't tested or confirmed or anythinged that; I'll > leave it with you and upstream. I will contact upstream but I wanted to hear the opinion of the Uploaders of this package. > I also couldn't help notice: > > Vcs-Browser: https://salsa.debian.org/debian/python-uncertainties > Vcs-Git: https://salsa.debian.org/debian/python-uncertainties.git > > .. yet: > > Maintainer: Debian Python Modules Team That's probably explained in my other mail I've wrongly sent to python-modules-team list where it might have not been noticed by you. I wanted the Uploaders confirm the move to DPMT and make sure they have commit permissions before the repository is moved. Kind regards Andreas. [1] https://lists.debian.org/debian-python/2018/10/msg00020.html [2] https://alioth-lists.debian.net/pipermail/python-modules-team/2018-October/050019.html -- http://fam-tille.de