Re: join , split question

2009-11-05 Thread metal
this message in context:http://old.nabble.com/join-%2C-split-question-tp26193334p26193334.html Sent from the Python - python-list mailing list archive at Nabble.com. s = uji708 uhodih utus29 agamu4 azi340 ekon62 from itertools import cycle for i, x in zip(cycle(range(3)), s.splitlines()): print x

Re: join , split question

2009-11-05 Thread metal
help ,much appreciate thanks in advance -- View this message in context:http://old.nabble.com/join-%2C-split-question-tp26193334p26193334.html Sent from the Python - python-list mailing list archive at Nabble.com. s = uji708 uhodih utus29 agamu4 azi340 ekon62 from itertools import

Re: join , split question

2009-11-05 Thread elca
://elca.pastebin.com/f5c69fe41 -- http://mail.python.org/mailman/listinfo/python-list thanks all! i was resolved :) -- View this message in context: http://old.nabble.com/join-%2C-split-question-tp26193334p26225646.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http

split question

2005-04-28 Thread alexk
I've a simple question. Why the following: words = [EMAIL PROTECTED]@^%[wordA] [EMAIL PROTECTED].split('[EMAIL PROTECTED]*()_+-=[]{},./') doesn't work? The length of the result vector is 1. I'm using ActivePython 2.4 Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: split question

2005-04-28 Thread Grant Edwards
On 2005-04-28, alexk [EMAIL PROTECTED] wrote: I've a simple question. Why the following: words = [EMAIL PROTECTED]@^%[wordA] [EMAIL PROTECTED].split('[EMAIL PROTECTED]*()_+-=[]{},./') doesn't work? But it does work. Your input string (the one on the left) does not contain the delimiter

Re: split question

2005-04-28 Thread Michael Spencer
alexk wrote: I've a simple question. Why the following: words = [EMAIL PROTECTED]@^%[wordA] [EMAIL PROTECTED].split('[EMAIL PROTECTED]*()_+-=[]{},./') doesn't work? The length of the result vector is 1. I'm using ActivePython 2.4 Alex Do you mean, why doesn't it split on every character in

Re: split question

2005-04-28 Thread alexk
Yes, all of you are right. Thank you all for your answers - I'll use a regex. -- http://mail.python.org/mailman/listinfo/python-list