Re: [BangPypers] re module help

2012-01-09 Thread Mandar Vaze / मंदार वझे
> > cmd = "sdptool -i hci0 search OPUSH > sdptool" > > working file standalone fine. but over stream not getting output. > > check link > > http://dpaste.com/684335/ > > In the the code above, as well as from dpaste link, you are already redirecting to a file. Try "cmd = "sdptool -i hci0 search OPU

Re: [BangPypers] re module help

2012-01-09 Thread Baishampayan Ghose
On Mon, Jan 9, 2012 at 4:57 PM, Ganesh Kumar wrote: >> > I tried also subprocess module, But didn't got result, I tried the same >> > pattern. But didn't match the string over the stream. >> >> Are you sure you're getting the output from the command in your string? >> > > I got output from termina

Re: [BangPypers] re module help

2012-01-09 Thread Asokan Pichai
On 9 January 2012 16:57, Ganesh Kumar wrote: > Hi. > > > > > > I tried also subprocess module, But didn't got result, I tried the same > > > pattern. But didn't match the string over the stream. > > > > Are you sure you're getting the output from the command in your string? > > > > I got output f

Re: [BangPypers] re module help

2012-01-09 Thread Ganesh Kumar
Hi. > > > I tried also subprocess module, But didn't got result, I tried the same > > pattern. But didn't match the string over the stream. > > Are you sure you're getting the output from the command in your string? > I got output from terminal command working fine > Verify that and then you ca

Re: [BangPypers] re module help

2012-01-09 Thread Noufal Ibrahim
Ganesh Kumar writes: > Hi sir, > > I tried also subprocess module, But didn't got result, I tried the same > pattern. But didn't match the string over the stream. Are you sure you're getting the output from the command in your string? Verify that and then you can, if necessary, debug the regular

Re: [BangPypers] re module help

2012-01-09 Thread Ganesh Kumar
Hi sir, I tried also subprocess module, But didn't got result, I tried the same pattern. But didn't match the string over the stream. > >>> import subprocess > >>> s = subprocess.Popen(["head", "/etc/hosts"], stdout = subprocess.PIPE) > >>> hosts_head = s.stdout.read() > >>> print hosts_head > 1

Re: [BangPypers] re module help

2012-01-09 Thread Noufal Ibrahim
Ganesh Kumar writes: > Hi Guys, > > I have created regular expression with os modules, I have created file > sdptool to match the regular expression pattern, will print the result. > I want without creating file how to get required output, I tried but i > didn't get output correctly, over stream.

[BangPypers] re module help

2012-01-09 Thread Ganesh Kumar
Hi Guys, I have created regular expression with os modules, I have created file sdptool to match the regular expression pattern, will print the result. I want without creating file how to get required output, I tried but i didn't get output correctly, over stream. #! /usr/bin/python import os,re

Re: [BangPypers] RE : Python mechanize Change the Location of Google search

2011-09-15 Thread Senthil Kumaran
On Thu, Sep 15, 2011 at 3:31 PM, Saju M wrote: > I also tried to change google search location through > http://www.google.co.in/preferences?hl=en#loc , but getting error > mechanize._response.httperror_seek_wrapper: HTTP Error 404: Not Found Mechanize does not support any action done via Javascr

[BangPypers] RE : Python mechanize Change the Location of Google search

2011-09-15 Thread Saju M
Hi, I also tried to change google search location through http://www.google.co.in/preferences?hl=en#loc , but getting error mechanize._response.httperror_seek_wrapper: HTTP Error 404: Not Found Here is the code i tried import re import cookielib from mechanize import Browser import mechanize br

Re: [BangPypers] Re - [Training Requirement] Python crash course in Reva engineering college - completed

2010-08-09 Thread Rajeev Nair
Hi, > On Thu, Aug 5, 2010 at 4:32 PM, Rajeev Nair > wrote: > > > Hi > > > > As part of the awareness building programme for PyCon India, i have been > > doing the rounds of a few colleges in and around Bangalore, Reva > > engineering > > college has confirmed date for a crash course on August

Re: [BangPypers] Re - [Training Requirement] Python crash course in Reva engineering college on August 7th

2010-08-05 Thread Nitin Kumar
I am interested, but the date/ time mentioned is bit difficult for me :( On Thu, Aug 5, 2010 at 4:32 PM, Rajeev Nair wrote: > Hi > > As part of the awareness building programme for PyCon India, i have been > doing the rounds of a few colleges in and around Bangalore, Reva > engineering > college

[BangPypers] Re - [Training Requirement] Python crash course in Reva engineering college on August 7th

2010-08-05 Thread Rajeev Nair
Hi As part of the awareness building programme for PyCon India, i have been doing the rounds of a few colleges in and around Bangalore, Reva engineering college has confirmed date for a crash course on August 7 Saturday ,from 2 pm - 4.30 pm . Anyone would like to volunteer and do the session ?

[BangPypers] Re-working the GIL

2009-10-25 Thread Anand Balachandran Pillai
There is a thread started by Antoine Pitrou in python-dev. He suggests a slightly different approach to GIL implementation, which uses a time based approach than counting opcodes to acquire/release the GIL, which is the current implementation. http://mail.python.org/pipermail/python-dev/2009-Octob

[BangPypers] Re

2009-10-15 Thread Srinivas Reddy Thatiparthy
>>May be we Indians always think the other person to be better or smarter. To quote from your own post: >>"Comparatively i have very less exposure and exp as you people have" I have attended Pycon and observed you people(noufal,senthil,ShyamShankar,AB,Kenneth) talking that's why i said. Regard

[BangPypers] Re quired Plone developers

2009-07-07 Thread sunny_plone
Hi, My name is Sunny Chilgod. Currently there is opening for plone developers (0-1 years exp.) in my company, www.abbotinfotech.com. Anyone interested , can send thier resumes to schil...@gmail.com. -- View this message in context: http://www.nabble.com/Required-Plone-developers-tp24377221p2437

[BangPypers] Re :Re: Re :Use of module (Include file) in Python???

2008-09-11 Thread Deepak Patel
Thanks a lot guys, I have not yet tried it, got involved in something else, but will try it shortly.It looks like this "IMPORT" will be replacing the "#include" kind of behaviour in Python.Thanks,Deepak.On Sun, 7 Sep 2008 01:58:15 +0530 Bangalore Python Users Group - India wroteOn Sun, Sep 7, 20

Re: [BangPypers] Re :Use of module (Include file) in Python???

2008-09-06 Thread Rajeev J Sebastian
On Sun, Sep 7, 2008 at 1:16 AM, Abhinav Sarkar <[EMAIL PROTECTED]> wrote: > > from modulename import methodname > > or to import all methods at once do: > > from modulename import * Of course ... the first way is better form than the second for various reasons ... so you might want to make that a

Re: [BangPypers] Re :Use of module (Include file) in Python???

2008-09-06 Thread Abhinav Sarkar
David Elsen wrote: Hi Venkata, Thanks. I could do this. Import my first file as module and then using all my methods . format, but I would like to include my file and want to use just as not as .. Hope I am clear. Thanks, Deepak On Sat, Sep 6, 2008 at 5:45 AM, venkata subramanian <[EMAIL

Re: [BangPypers] Re :Use of module (Include file) in Python???

2008-09-06 Thread David Elsen
Hi Venkata, Thanks. I could do this. Import my first file as module and then using all my methods . format, but I would like to include my file and want to use just as not as .. Hope I am clear. Thanks, Deepak On Sat, Sep 6, 2008 at 5:45 AM, venkata subramanian < [EMAIL PROTECTED]> wrote: > Hi

Re: [BangPypers] Re :Use of module (Include file) in Python???

2008-09-06 Thread venkata subramanian
Hi Deepak, You can do this. It is using the keyword called import. The basic syntax is import example: import RegDesc then, you can do RegDesc.foo(bar) My friend had the same problem. He read the tutorial till one point and missed the part where they talk about modules and packages. So

[BangPypers] Re :Use of module (Include file) in Python???

2008-09-06 Thread Deepak Patel
Hello,I am new to Python and need some help. Can someone please tell me whether I can use the Python Module like include file? Is there a way to use the "include" file in Python? If I try to include a file with "# include", that line is treated as comment. What is the directive to include the in