Article View: pl.comp.lang.python
Article #511Re: reverse na stringu
From: bart
Date: Fri, 03 Jan 2003 08:51
Date: Fri, 03 Jan 2003 08:51
27 lines
1598 bytes
1598 bytes
On Fri, 03 Jan 2003 08:05:05 +0000, Wojtek Walczak wrote: > Dnia Thu, 2 Jan 2003 21:07:59 +0000 (UTC), Adam Przybyla napisaล(a): >>>>>> a = 'ala ma kota' >>>>>> a.reverse() >>> 'atok am ala' >>> ? :) >> ... niezbyt;-) > ze nie dziala, to wiem :) > Dlatego napisalem to: > <http://gminick.linuxsecurity.pl/pliki/old/tools/py23a1-str-reverse.patch> > ...tylko, ze to reverse nie zmienia obiektu, ono zwraca odwrocony wyraz. > > ps. patch jest dla 2.3a1. skoro dla 2.3a1 to moze lepiej >>> a = 'ala ma kota' >>> a[::-1] >>> 'atok am ala' po co jeszcze kombinowac, raczej jezyki trzeba w miare mozliwosci upraszczac zamiast komplikowac... i skoro jest juz latwa i przyjemna mozliwosc reverse to po co dodawac jeszcze nowa? bart
Technical Details
Message-ID:
<pan.2003.01.03.08.51.14.106778@wp.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.ipartners.pl!not-for-mailReferences:
<av20qa$49h$1@news.tpi.pl> <av22gl$akf$1@news.tpi.pl> <av22n6$g4a$1@news.tpi.pl> <av29ne$19m$1@news.tpi.pl> <av3g7g$47c$1@news.tpi.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.ipartners.pl!not-for-mail From: "bart" <lda2@wp.pl> Newsgroups: pl.comp.lang.python Subject: Re: reverse na stringu Date: Fri, 03 Jan 2003 09:51:14 +0100 Organization: Internet Partners Lines: 28 Message-ID: <pan.2003.01.03.08.51.14.106778@wp.pl> References: <av20qa$49h$1@news.tpi.pl> <av22gl$akf$1@news.tpi.pl> <av22n6$g4a$1@news.tpi.pl> <av29ne$19m$1@news.tpi.pl> <av3g7g$47c$1@news.tpi.pl> NNTP-Posting-Host: 195.94.214.7 Mime-Version: 1.0 X-Trace: news2.ipartners.pl 1041583885 38038 195.94.214.7 (3 Jan 2003 08:51:25 GMT) X-Complaints-To: abuse@ipartners.pl NNTP-Posting-Date: 3 Jan 2003 08:51:25 GMT User-Agent: Pan/0.13.2 (I wwwondeling why alla boppah ferra pushing in?) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit