From: "Ivan A. Melnikov" <iv@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] Python 3: unicode error
Date: Wed, 11 Jul 2012 07:57:25 +0400
Message-ID: <20120711075725.4e392714@deimos.localdomain> (raw)
In-Reply-To: <4FFBBE02.4040202@kemsu.ru>
On Tue, 10 Jul 2012 12:30:42 +0700
REAL <real@kemsu.ru> wrote:
> 10.07.2012 12:22, Ildar Mulyukov пишет:
> >> default='\N'
> >> ^
> >> SyntaxError: (unicode error) 'unicodeescape' codec can't decode
> >> bytes in position 0-1: malformed \N character escape
> >
> > двойную обратную косую пробовали?
>
> Сначала бы понять, что означает это \N ... Вдруг какая-то
> esc-конструкция, которая в новом питоне упразднена (вот только чем
> заменена)?
>
Это вряд ли, если только авторы не ошиблись регистром:
$ python2
Python 2.7.3 (default, Apr 19 2012, 11:28:12)
[GCC 4.5.3 20120403 (ALT Linux 4.5.3-alt3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> '\N'
'\\N'
--
WBR,
Ivan A. Melnikov
prev parent reply other threads:[~2012-07-11 3:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-10 4:40 REAL
2012-07-10 5:22 ` Ildar Mulyukov
2012-07-10 5:30 ` REAL
2012-07-11 3:57 ` Ivan A. Melnikov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120711075725.4e392714@deimos.localdomain \
--to=iv@altlinux.org \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git