something about split()???
Laszlo Nagy
gandalf at shopzeus.com
Fri Aug 24 10:54:05 EDT 2012
On 2012-08-15 07:33, Ramchandra Apte wrote:
> filter is bad when you use lambda with it
> there are (good) cases for filter
>
> On 14 August 2012 22:39, Jean-Michel Pichavant <jeanmichel at sequans.com
> <mailto:jeanmichel at sequans.com>> wrote:
>
> Ramchandra Apte wrote:
>
> (Much) more Pythonic solution:
> >>> filter(None,"|".split("|"))
>
> On 14 August 2012 15:14, Andreas Tawn
> <andreas.tawn at ubisoft.com <mailto:andreas.tawn at ubisoft.com>
> <mailto:andreas.tawn at ubisoft.com
> <mailto:andreas.tawn at ubisoft.com>>> wrote:
>
> > I have a question about the split function? surpose a =
> "|",and
> when I use a.split("|") , I got the list
> > ['"",""] ,but I want to get the empty list,what should I
> do ?
>
Too many top posters again :-(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120824/f1ca79ef/attachment.html>
More information about the Python-list
mailing list