Re: [BangPypers] python framework for android

2012-01-03 Thread Kenneth Gonsalves
On Wed, 2012-01-04 at 14:24 +0800, Senthil Kumaran wrote: > On Wed, Jan 4, 2012 at 2:18 PM, Kenneth Gonsalves > wrote: > > > > am looking at kivy right now > > Looks neat. I would like to try that one too. there was a wonderful talk on it in the last pycon. -- regards Kenneth Gonsalves __

Re: [BangPypers] python framework for android

2012-01-03 Thread Senthil Kumaran
On Wed, Jan 4, 2012 at 2:18 PM, Kenneth Gonsalves wrote: > > am looking at kivy right now Looks neat. I would like to try that one too. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] python framework for android

2012-01-03 Thread Kenneth Gonsalves
On Wed, 2012-01-04 at 14:13 +0800, Senthil Kumaran wrote: > You can use django and fireup the browser in android to do the > requests. :) some how I have the feeling that django may be a trifle overkill ;-) > > Apart from that, there is android-scripting application (not a > framework) http://cod

Re: [BangPypers] python framework for android

2012-01-03 Thread Ramakrishna Reddy
On Wed, Jan 4, 2012 at 11:37 AM, Kenneth Gonsalves wrote: > hi, > > can anyone recommend a python framework for android? You can write python application with a bit of Javascript using the SL4A ( Scripting language for Android) Running a webservice for backend webservices, you can host it off the

Re: [BangPypers] python framework for android

2012-01-03 Thread Navin Kabra
On Wed, Jan 4, 2012 at 11:37 AM, Kenneth Gonsalves wrote: > can anyone recommend a python framework for android? Negative vote for SL4A (previously known as ASE - Android Scripting Environment). I have played with it, and I think it is largely a toy - it is good for personal use - quick scripts f

Re: [BangPypers] python framework for android

2012-01-03 Thread Senthil Kumaran
You can use django and fireup the browser in android to do the requests. :) Apart from that, there is android-scripting application (not a framework) http://code.google.com/p/android-scripting/, where in your restricted python scripts can be made to execute But that is far less featured than using

[BangPypers] python framework for android

2012-01-03 Thread Kenneth Gonsalves
hi, can anyone recommend a python framework for android? -- regards Kenneth Gonsalves ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] PyCon or DjangoCon Videos

2012-01-03 Thread Venkatraman S
Does anyone have PyCon or DjangoCon videos downloaded(preferably in Bangalore). I know i can watch them all in blip.tv, but wanted some offline access. -V ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpyper

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Pratap Chakravarthy
I donno guru. You ask the question. > please come up with a real-life example. And provide the answer in your final paragraph. > I believe that we are > now in an age where intelligent parsers > should be able to derive meaning from > broken, and incomplete structures. The only way I know to wr

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Gora Mohanty
On Tue, Jan 3, 2012 at 9:36 PM, Pratap Chakravarthy wrote: >> *Really?* I believe that the ball is currently in your court. >> It was *your* regex that was broken, and badly, if I may >> add. > > By saying broken, do you mean that this regex >   r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Gora Mohanty
On Tue, Jan 3, 2012 at 9:19 PM, Pratap Chakravarthy wrote: > The ball is in my court alright. But you have played my turn as well, with > your > explanations, and you played it good. Except for the paragraph about the > boss. I only beg to differ from your suggestion "... used sparingly, if at >

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Pratap Chakravarthy
> *Really?* I believe that the ball is currently in your court. > It was *your* regex that was broken, and badly, if I may > add. By saying broken, do you mean that this regex r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)' follows the pathological case of exponential complexity ? From

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Pratap Chakravarthy
The ball is in my court alright. But you have played my turn as well, with your explanations, and you played it good. Except for the paragraph about the boss. I only beg to differ from your suggestion "... used sparingly, if at all used". And I still beg to differ / Cheers, On Tue, Jan 3, 2012 a

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Gora Mohanty
On Tue, Jan 3, 2012 at 8:31 PM, Pratap Chakravarthy wrote: >> Mean no offence to you personally, > > None taken. Thank you for taking things in a good spirit: Personally speaking, I discover almost each day how ignorant I am compared to other people, in many contexts. True knowledge should be the

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Pratap Chakravarthy
> Mean no offence to you personally, None taken. I believe Ganesh might take your more specific regex and use that with findall() grouping to get what he wants. It is always a good practice to be more specific in composing regular expressions, carelessly composed PCRE (where P stands for Perl ;) )

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Gora Mohanty
On Tue, Jan 3, 2012 at 8:07 PM, Gora Mohanty wrote: > On Tue, Jan 3, 2012 at 8:03 PM, Pratap Chakravarthy > wrote: >> Hi Ganesh, may be you can try this out, >> >>> re.findall(r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)', str ) > > Try: >  re.findall(r'Searching for OPUSH on([^\.\n\r

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Gora Mohanty
On Tue, Jan 3, 2012 at 8:03 PM, Pratap Chakravarthy wrote: > Hi Ganesh, may be you can try this out, > >> re.findall(r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)', str ) Try: re.findall(r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)', 'Searching for OPUSH on in all the wrong

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Gora Mohanty
On Tue, Jan 3, 2012 at 7:23 PM, Ganesh Kumar wrote: > Hi Guys, > > I want parse multiple line. with re.module, this is my given string > http://dpaste.com/680760/ I have try with re.compile module. I want parse > two line mac address and channel, > I have done with for mac address finding > > r =

Re: [BangPypers] Parse multi line with re module.

2012-01-03 Thread Pratap Chakravarthy
Hi Ganesh, may be you can try this out, > re.findall(r'Searching for OPUSH on([^\.\n\r]+)|Channel:([^\r\n]*)', str ) [(' 00:1D:FD:06:99:99 ', ''), ('', ' 9')] where str contains the string you want to parse. And the regex contains two groups, defined between (...), suggesting findall() to search

[BangPypers] Parse multi line with re module.

2012-01-03 Thread Ganesh Kumar
Hi Guys, I want parse multiple line. with re.module, this is my given string http://dpaste.com/680760/ I have try with re.compile module. I want parse two line mac address and channel, I have done with for mac address finding r = re.compile("^Searching for OPUSH on (\w\w(:\w\w)+)") for channel f