Re: split with "*" in string and ljust() puzzles

2006-06-14 Thread Sambo
George Sakkis wrote: > Serge Orlov wrote: > > >>Sambo wrote: >> >>>I have just (finally) realized that it is splitting and removing >>>on single space but that seams useless, and split items >>>1 and 2 are empty strings not spaces?? >> >>What is useless for you is worth $1,000,000 for somebody el

Re: split with "*" in string and ljust() puzzles

2006-06-14 Thread George Sakkis
Serge Orlov wrote: > Sambo wrote: > > I have just (finally) realized that it is splitting and removing > > on single space but that seams useless, and split items > > 1 and 2 are empty strings not spaces?? > > What is useless for you is worth $1,000,000 for somebody else ;) > If you have comma sep

Re: split with "*" in string and ljust() puzzles

2006-06-14 Thread Serge Orlov
Sambo wrote: > I have just (finally) realized that it is splitting and removing > on single space but that seams useless, and split items > 1 and 2 are empty strings not spaces?? What is useless for you is worth $1,000,000 for somebody else ;) If you have comma separated list '1,,2'.split(',') nat

split with "*" in string and ljust() puzzles

2006-06-14 Thread Sambo
I have couple of puzzles in my code. def load_headers( group_info ): if os.path.isfile( group_info.pointer_file ): ptr_file = open( group_info.pointer_file, "r" ) else: print group_info.mess_list return linecount = 0 ptr_file.seek( 512 ) print ptr_file.