On Sun, Mar 15, 2009 at 2:51 PM, Alexander Solovyov <piranha at piranha.org.ua> wrote: > Actually it's better to do this: > > line = line.split('#', 1)[0] Can i have foo = "timeless #2" <timeless at localhost> ?