🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #27481

Re: koszmar z Unicode

#27481
From: Łukasz Rekucki
Date: Sun, 23 May 2010 20:12
9 lines
1726 bytes
On 23 Maj, 21:30, Sledgehammer <tom...@brzezina.pl> wrote:
> dla wyjaśnienia: mamy sobie w obiekcie zakodowane mnóstwo zmiennych,
> list, krotek itp. niektóre z nich są unikodem.
> i chcę np. podejrzeć zawartość: print zmienna.__dict__
> I CHCĘ TO NORMALNIE ZOBACZYĆ. Choćby miały tam być chińskie krzaczki
> pomieszane z cyrylicą i herbajskim.

Możesz użyć "print repr(..)". repr() zawsze zawiera tylko znaki ASCII,
więc wyświetli się na każdej konsoli.
Technical Details
Message-ID: <c3b3476d-f39f-40c4-8577-e9ac77f9606d@r9g2000vbk.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder2.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!r9g2000vbk.googlegroups.com!not-for-mail
References: <fbbef7ec-c824-44c4-9c39-b870411192bf@q33g2000vbt.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder2.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!r9g2000vbk.googlegroups.com!not-for-mail
From: Łukasz Rekucki <lrekucki@gmail.com>
Newsgroups: pl.comp.lang.python
Subject: Re: koszmar z Unicode
Date: Sun, 23 May 2010 13:12:47 -0700 (PDT)
Organization: http://groups.google.com
Lines: 13
Message-ID: <c3b3476d-f39f-40c4-8577-e9ac77f9606d@r9g2000vbk.googlegroups.com>
References: <fbbef7ec-c824-44c4-9c39-b870411192bf@q33g2000vbt.googlegroups.com>
NNTP-Posting-Host: 212.76.62.207
Mime-Version: 1.0
X-Trace: posting.google.com 1274645568 11218 127.0.0.1 (23 May 2010 20:12:48 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 23 May 2010 20:12:48 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: r9g2000vbk.googlegroups.com; posting-host=212.76.62.207;  posting-account=5fpXZwoAAADF-CUdCuJ-FpYxG8__-wRx
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4  (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4,gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit