Python solve problem with string operation
Hi everyone, I want to do operation with chars in the given string. Actually I want to grouping the same chars. For example; input : 3443331123377 operation- (3)(44)()(333)(11)(2)(33)(77) output: 34131237 How can I do without list, regular expression. just using string operations. Using an effective methods of python for this problem. Thanks, Best regards. -- https://mail.python.org/mailman/listinfo/python-list
Re: Python log parser
I could not do using syslog module. On Fri, Apr 5, 2013 at 4:00 AM, rh richard_hubb...@lavabit.com wrote: pydoc syslog That intenough? On Fri, 5 Apr 2013 02:17:55 +0300 Nac Temha nacctte...@gmail.com wrote: Hi, I'm working to parse log files. But I need to help this matter. I want to parse syslog(wihch program is running, timestamp,host,etc) of system I could not find any module of python for this. Or do you have suggestion? -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Python log parser
On Fri, Apr 5, 2013 at 4:31 PM, Grant Edwards invalid@invalid.invalidwrote: On 2013-04-05, rh richard_hubb...@lavabit.com wrote: On Fri, 5 Apr 2013 02:17:55 +0300 Nac Temha nacctte...@gmail.com wrote: Hi, I'm working to parse log files. But I need to help this matter. I want to parse syslog(wihch program is running, timestamp,host,etc) of system I could not find any module of python for this. Or do you have suggestion? pydoc syslog That intenough? No. Can you be more specific? All the documentation I've found for the syslog module is for _generating_ log entries (it's a wrapper for the Unix syslog library). Thanks for understand me. That's not what the OP asked about. The OP asked about parsing syslog files, not generating syslog file entries. Can syslog module parsing syslog messages? I give you example for better explain this matter; I can parse perl module( http://search.cpan.org/dist/Parse-Syslog/lib/Parse/Syslog.pm). I obtained host,program,message text. I want to do them with python. Parsing syslog files is not a well-defined problem. The format of a syslog file depends on which system log daemon you're running and now it's configured. -- Grant Edwards grant.b.edwardsYow! Do I have a lifestyle at yet? gmail.com -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Python log parser
Hi, I'm working to parse log files. But I need to help this matter. I want to parse syslog(wihch program is running, timestamp,host,etc) of system I could not find any module of python for this. Or do you have suggestion? Best regards. -- http://mail.python.org/mailman/listinfo/python-list
How to set or get enviroment variable
Hi, I want to get and set enviroment variable of linux system. Actually I can do this issue using os module but How can I do without using os module? Is there another way? Regards. -- http://mail.python.org/mailman/listinfo/python-list
Re: How to set or get enviroment variable
Just wondering. most ideal approach is use os module, is true? On Sat, Mar 30, 2013 at 10:45 PM, Chris Angelico ros...@gmail.com wrote: On Sun, Mar 31, 2013 at 7:39 AM, Nac Temha nacctte...@gmail.com wrote: Hi, I want to get and set enviroment variable of linux system. Actually I can do this issue using os module but How can I do without using os module? Is there another way? Why would you want to do it without the os module? That IS the way to do it. Why would there be another way? ChrisA -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Calculate Big Number
Hello, How to *quickly* calculate large numbers. For example (10**25) * (2**50) 11258999068426240L Regards. -- http://mail.python.org/mailman/listinfo/python-list
Re: Calculate Big Number
Thanks for reply. I wonder how quickly calculate big numbers. Can you explain me as theoretical? Because this numbers overflow size of integer and double. On Tue, Jan 8, 2013 at 3:08 AM, Tim Chase python.l...@tim.thechases.comwrote: On 01/07/13 18:44, Nac Temha wrote: How to *quickly* calculate large numbers. For example (10**25) * (2**50) 112589990684262400**000L that's how...just do the math. For any other sort of answer, you'd have to clarify your question. On my laptop, that operation came back as quickly as I could press enter -tkc -- http://mail.python.org/mailman/listinfo/python-list
Python programming philosophy
Hello, I want to learn working principle of python as broadly. How to interpret the python? For example, what is pyc files and when does it occur? Can you explain them? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list