[BangPypers] python split
Is there a way to split text like below example.Previous message: [BangPypers] [Job Posting] Zope/Python developer for UN Project.
Is there a way to split text like below example.Previous message: [BangPypers] [Job Posting] Zope/Python developer for UN Project.
(cmd, req1, req2, req3, *opts) = input.split() execute_cmd(cmd, req1, req2, req3, opts). A really interesting possibility is: (first, *middle, last) = input.split(). This breaks the parallel to parameter passing, but would be very handy. Are we getting too perlish?
Try writing it in Python and you will know how painful it is. Also Python doesn't go well with pipes. For example, the following code produces an error. python -c 'while True: print "hello"' | head -1. But its perl equivalent doesn't.
[BangPypers] python split. Anand Balachandran Pillai abpillai at gmail.com Tue Oct 21 12:46:51 CEST 2008.On Tue, Oct 21, 2008 at 4:03 PM, VIJ AY KUMAR <vnbang2003 at yahoo.com> wrote: > Hi , > Is there a way to split text like below example > >.