<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 2012-08-15 07:33, Ramchandra Apte
wrote:<br>
</div>
<blockquote
cite="mid:CAExgZOiHi-mE1mVvxYOST5RDbosDn3fP1X2nxkyDiKk=0ajjSw@mail.gmail.com"
type="cite">filter is bad when you use lambda with it
<div>there are (good) cases for filter<br>
<br>
<div class="gmail_quote">On 14 August 2012 22:39, Jean-Michel
Pichavant <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jeanmichel@sequans.com" target="_blank">jeanmichel@sequans.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Ramchandra
Apte wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">
(Much) more Pythonic solution:<br>
>>> filter(None,"|".split("|"))<br>
<br>
</div>
<div class="im">
On 14 August 2012 15:14, Andreas Tawn <<a
moz-do-not-send="true"
href="mailto:andreas.tawn@ubisoft.com" target="_blank">andreas.tawn@ubisoft.com</a>
<mailto:<a moz-do-not-send="true"
href="mailto:andreas.tawn@ubisoft.com" target="_blank">andreas.tawn@ubisoft.com</a>>>
wrote:<br>
<br>
> I have a question about the split function?
surpose a = "|",and<br>
when I use a.split("|") , I got the list<br>
> ['"",""] ,but I want to get the empty list,what
should I do ?<br>
</div>
</blockquote>
</blockquote>
</div>
</div>
</blockquote>
<br>
Too many top posters again :-(<br>
<br>
</body>
</html>