๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ID3 z MP3

#128
From: Wojtek Walczak
Date: Mon, 02 Dec 2002 17:38
19 lines
1451 bytes
Dnia Mon, 2 Dec 2002 15:50:19 +0000 (UTC), Adam Przybyla napisaล‚(a):
> 	... jest tego wiecej:
> map(lambda x: x+1,[1,2,3])
> czy to samo inaczej
> [x+1 for x in [1,2,3]]
> To samo co w pierwszym przykladzie wygladaloby tak:
> def p(x): print x
> x=map(p,[1,2,3])
> lub 
> x=[p(x) for x in [1,2,3]]
...a to moje ulubione:

"".join(map(lambda x:chr(x or 97),[int(i or '0x44',16)for i in[0,'0x0','0x67','0x6d','0x0','0x72','0x0']])))

:)

-- 
[ ] gminick (at) underground.org.pl  http://gminick.linuxsecurity.pl/ [ ]
[ "Po prostu lubie poranna samotnosc, bo wtedy kawa smakuje najlepiej." ]
Technical Details
Message-ID: <slrnaunk3e.87u.gminick@hannibal.localdomain>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!news.onet.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
References: <asfsn7$sgh$1@news.tpi.pl> <slrnaunccs.82j.gminick@hannibal.localdomain> <asfvfq$f13$1@news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!news.onet.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: Wojtek Walczak <gminick@hacker.pl>
Newsgroups: pl.comp.lang.python
Subject: Re: ID3 z MP3
Date: Mon, 2 Dec 2002 17:38:27 +0000 (UTC)
Organization: tp.internet - http://www.tpi.pl/
Lines: 19
Message-ID: <slrnaunk3e.87u.gminick@hannibal.localdomain>
References: <asfsn7$sgh$1@news.tpi.pl> <slrnaunccs.82j.gminick@hannibal.localdomain> <asfvfq$f13$1@news.tpi.pl>
NNTP-Posting-Host: pb135.kepno.sdi.tpnet.pl
Mime-Version: 1.0
X-Trace: news.tpi.pl 1038850707 2954 213.25.218.135 (2 Dec 2002 17:38:27 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Mon, 2 Dec 2002 17:38:27 +0000 (UTC)
User-Agent: slrn/0.9.7.3 (Linux)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit