![](https://secure.gravatar.com/avatar/107dbd4c05818a538bce7193e5647c7a.jpg?s=120&d=mm&r=g)
19 May
2011
19 May
'11
4:47 p.m.
On 5/18/2011 10:19 AM, Nadeem Vawda wrote:
I'm not sure why you would encounter code like that in the first place. Surely any code of the form:
''.join(c for c in my_string)
would just return my_string? Or am I missing something?
You might more-or-less legitimately encounter it if the generator expression originally contained a condition which got removed. Skip