How to parse a text block?

2010-11-26 Thread Sergey Smirnov
Hi all. I have a lot of text blocks that looks like this one *** Layer 3 Message type: CP-Data Device: MS1 Time: 19:57:44.71 CP-User data length : 37 RPDU Message type indicator (MTI) : (1) RP-DATA The question is how to parse given text block into a dictionary that looks like the dicti

Re: How do I make python test.py work without a syntax error msg?

2010-08-19 Thread Sergey Smirnov
this is what it looks like > > > On Thu, Aug 19, 2010 at 7:01 PM, Agida Kerimova wrote: > >> Hi, I don't know how to work in a non bash console... I typed python in a >> terminal window and all but it didn't work... >> >> >> >> >> &g

Re: How do I make python test.py work without a syntax error msg?

2010-08-19 Thread Sergey Smirnov
*when I actually * *type it I get an error msg* Did you type python commands in a bash console? In case you did, you should run python interactive console instead. Just type python in terminal window and than you'll be able interactively run statements. If you have your script saved in a file, f