Article View: pl.comp.lang.python
Article #15866Re: string -> lista
From: Adam Karpierz
Date: Fri, 23 Jun 2006 12:16
Date: Fri, 23 Jun 2006 12:16
9 lines
1119 bytes
1119 bytes
"Janusz A. Urbanowicz" <alex@bofh.org.pl> wrote:
> ma ktoś pomysł na elegancką funkcję ktora [list] nie rusza a 'stringa'
> przerobi na ['stringa']?
if type(string) in types.StringTypes:
string = [string]
AK
Technical Details
Message-ID:
<e7gm21$gu9$1@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailReferences:
<7xzmg4gji3.fsf@hell.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: "Adam Karpierz" <karpierz@NOOOOSPAAAAMpython.pl> Newsgroups: pl.comp.lang.python Subject: Re: string -> lista Date: Fri, 23 Jun 2006 14:16:00 +0200 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 11 Message-ID: <e7gm21$gu9$1@inews.gazeta.pl> References: <7xzmg4gji3.fsf@hell.pl> NNTP-Posting-Host: nat-plk.mentorg.com X-Trace: inews.gazeta.pl 1151064961 17353 139.181.144.34 (23 Jun 2006 12:16:01 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Fri, 23 Jun 2006 12:16:01 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Priority: 3 X-RFC2646: Format=Flowed; Original X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-User: karpierz X-MSMail-Priority: Normal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit