Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #11004

Re: TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties)

Path csiph.com!weretis.net!feeder4.news.weretis.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod
From Karsten Hilbert <Karsten.Hilbert@gmx.net>
Newsgroups linux.debian.maint.python
Subject Re: TypeError: ord() expected a character, but string of length 3 found (Was: Updated python-uncertainties)
Date Mon, 15 Oct 2018 12:10:01 +0200
Message-ID <wJ7YZ-64k-7@gated-at.bofh.it> (permalink)
References <wHYXL-6cv-1@gated-at.bofh.it> <wI3E5-vZ-11@gated-at.bofh.it> <wI477-F5-3@gated-at.bofh.it> <wI53b-1cW-1@gated-at.bofh.it> <wI6si-28W-9@gated-at.bofh.it> <wI7eF-2Ex-1@gated-at.bofh.it> <wI7HH-2NC-7@gated-at.bofh.it> <wI8kp-3eW-1@gated-at.bofh.it> <wJ7vX-5Ep-5@gated-at.bofh.it> <wJ7Pk-5L3-3@gated-at.bofh.it>
X-Original-To PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
X-Mailbox-Line From debian-python-request@lists.debian.org Mon Oct 15 10:08:33 2018
Old-Return-Path <karsten.hilbert@gmx.net>
X-Amavis-Spam-Status No, score=-7.699 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmx. - helo: .mout.gmx. - helo-domain: .gmx.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
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 robomod@news.nic.it
X-Provags-ID V03:K1:3RLb/uML47hkafYPWU0NtpSalxlTemdeEC174mgZbscSum+0KkR eDtuyQ9JElPd9fhY9KEK7+AFodERFkJxkbd5uO8Fb9ceaP8dHGfrR4WVlqITKbR+U8YZiPk IUn8ThlE7/55V3bPzoaKm+bXHAky+ng9GY4RIXdHJUhJUOm8x7D1YbLH+W+1ca+zS1n0Rj4 7moLsDV0UEQFfETe9dWHg==
X-Ui-Out-Filterresults notjunk:1;V01:K0:682qesrC5+k=:Lvv/mnYtUfkcvyBrZDJ4Hh BiEXrqg8v/x3++1zkao42WoZHneBQlXw+IYNqD4AfojSlUzdxmk/YOHrdIEH/c2jVoSChP8pM mp252gCvfNT15kJuSqYXscCoqImuDi9dwoq3uirmu2F0+7WWGnrs4SB9oqTH8dVj7hbTiIP0w QLJ/f09vfQi5rEarX0nS/YiMZmw0PNNoTXe7oFQWQy2tBObHnZbFECejYYdXdk6fdhSaKOyMJ Rs89uNDnMVZh8BT1NxTSkAPsOMTC0OIw0/GN1Jrf9Wo033tWzuzUCBCSPQpaiYMJpKWJjJ/yj Zrd+7w1axsK9KoPcgibNyUoSnECHtdfXCELPz6rApyQObZqnLub+k3LLss1RpjNo7IPRRWiim VGTOX2n/FQp1TELSz5/qnJ9cUPkiZe5e2Dk/CrE/Jwx26b28jd2h+cD7PEr9M0r5RAVt1jAOk AswOK+90eye9Di3tYqXl0BlCUPW9j1nxA9jbLz5aifzAfGuoCSgNhbpIQNKTsFH3LpUjJbMVJ vk8hahgiN72u4nqJLJ64+X+gkQP2lTBBLbZX6Zn/tqn087tVg4zO4dpeqYqCJqYunygW7+unT CtOwBRIo3+SuFH6V2wXowDJuHg5p+l6JrzcZISwAUvoPga3ogfo4zRxiIYYlGZJ7JvY0vxld8 AtDKu5Hk6FIGDgeMYBuEcb24D1srvIAqtTnWkmN5l11TMt4dmLJuUPjaOkbnGESMzKdLmMEVh pWuwx9h5CGpVw54s9iVoi4WsDJkVMD3cAN88nSJdBxcGb2q9vwQRp9NOkaDCf2lBmj5ss/ClB Jb9E+FXYTMaJTEDq+tHRsuDkIOvZw==
X-Mailing-List <debian-python@lists.debian.org> archive/latest/16436
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20181015100812.GA2008@hermes.hilbert.loc
Approved robomod@news.nic.it
Lines 21
Organization linux.* mail to news gateway
X-Original-Cc Andreas Tille <andreas@an3as.eu>, "debian-python@lists.debian.org" <debian-python@lists.debian.org>
X-Original-Date Mon, 15 Oct 2018 12:08:12 +0200
X-Original-Message-ID <20181015100812.GA2008@hermes.hilbert.loc>
X-Original-References <20181012061902.mf7vngqnwvxdge2s@an3as.eu> <20181012111533.4ym6loirbvnr2fnx@an3as.eu> <1539343938.2065153.1539680744.792D0909@webmail.messagingengine.com> <20181012124426.37nixbp2qupadu4o@an3as.eu> <20181012141757.lpt5lmh4dhuzdsb3@an3as.eu> <A2A20EC3B8560D408356CAC2FC148E53015B33D0B3@SUN-DAG3.synchrotron-soleil.fr> <A2A20EC3B8560D408356CAC2FC148E53015B33D1D9@SUN-DAG3.synchrotron-soleil.fr> <20181012161900.q4eama42xml7ppo7@sar0.p1otr.com> <20181015093737.wfrvaixo2bdmwvav@an3as.eu> <A2A20EC3B8560D408356CAC2FC148E53015B33D9E2@SUN-DAG3.synchrotron-soleil.fr>
X-Original-Sender <karsten.hilbert@gmx.net>
Xref csiph.com linux.debian.maint.python:11004

Show key headers only | View raw


On Mon, Oct 15, 2018 at 09:40:27AM +0000, PICCA Frederic-Emmanuel wrote:

> I found in the code a string with a ur''
> 
> This is the problematic line.
> 
> I do not know if this is a valid string construction.

Under Python 2 it is.

Under Python 3 it is not.

	u'test' is valid but extraneous
	r'test' is valid but extraneous

Since this is about reguular expressions I would suggest just
using 'the regex' under Python 3.

Karsten
-- 
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Updated python-uncertainties Andreas Tille <andreas@an3as.eu> - 2018-10-12 08:20 +0200
  TypeError: ord() expected a character, but string of length 3 found  (Was: Updated python-uncertainties) Andreas Tille <andreas@an3as.eu> - 2018-10-12 13:20 +0200
    Re: TypeError: ord() expected a character,  but string of length 3 found (Was: Updated python-uncertainties) Chris Lamb <lamby@debian.org> - 2018-10-12 13:50 +0200
      Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Andreas Tille <tille@debian.org> - 2018-10-12 14:50 +0200
        Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Andreas Tille <tille@debian.org> - 2018-10-12 16:20 +0200
          Re: TypeError: ord() expected a character,  but string of length 3 found (Was: Updated python-uncertainties) Chris Lamb <lamby@debian.org> - 2018-10-12 16:40 +0200
          RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-12 17:10 +0200
            RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-12 17:40 +0200
              Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Piotr Ożarowski <piotr@debian.org> - 2018-10-12 18:20 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-12 18:40 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-13 11:10 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-13 11:50 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-13 14:00 +0200
                Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Andreas Tille <andreas@an3as.eu> - 2018-10-15 11:40 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-15 12:00 +0200
                Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2018-10-15 12:10 +0200
                Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Andreas Tille <andreas@an3as.eu> - 2018-10-15 13:20 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-15 14:10 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-15 21:20 +0200
                Re: TypeError: ord() expected a character,  but string of length 3 found (Was: Updated python-uncertainties) Chris Lamb <lamby@debian.org> - 2018-10-15 22:10 +0200
                RE:TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-10-15 21:10 +0200
                Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Andreas Tille <andreas@an3as.eu> - 2018-10-16 09:10 +0200
                Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Dmitry Shachnev <mitya57@debian.org> - 2018-10-17 16:40 +0200
                Re: TypeError: ord() expected a character, but string of length 3  found (Was: Updated python-uncertainties) Andreas Tille <tille@debian.org> - 2018-10-17 19:50 +0200

csiph-web