Re: Need to import stuff

2010-08-17 Thread Abhijeet
Hi, Used imp. It worked. Thanks Daniel Kluev wrote: On Wed, Aug 18, 2010 at 9:40 AM, abhijeet thatte mailto:abhijeet.tha...@gmail.com>> wrote: Hi, Thanks for the reply. But I guess it does not support nested file paths. If user gives 'abcd' then I need

Question on Socket Timeouts

2012-11-18 Thread Abhijeet Mahagaonkar
no matter what data I receive? Thanks in advance, -Abhijeet -- http://mail.python.org/mailman/listinfo/python-list

Re: Question on Socket Timeouts

2012-11-18 Thread Abhijeet Mahagaonkar
I also tried looking at SO_RCVTIMEO option. Turns out that also resets if data is received. And yeah I implemented that as a separate logic in my code. I was wondering if sockets natively provided this functionality. Thanks again for clarifying. Cheers, Abhijeet On Mon, Nov 19, 2012 at 12:40

Issue with Scrapping Data from a webpage- Noob Question

2012-02-07 Thread abhijeet mahagaonkar
Hi Fellow Pythoners, I'm trying to collect table data from an authenticated webpage (Tool) to which I have access. I will have the required data after 'click'ing a submit button on the tool homepage. When I inspect the submit button i see Thus the tool's homepage is of the form www.example.com/

Running a Python script on a web server

2011-06-07 Thread Abhijeet Mahagaonkar
some inputs on how i will be able to "host" these scripts on a webserver and have them run on browsers rather than on individual systems. I have not done web prog, so consider this as a noob question :) Thanks in advance Warm Regards, Abhijeet -- http://mail.python.org/mailman/listi

Re: Running a Python script on a web server

2011-06-07 Thread Abhijeet Mahagaonkar
orrect me if i;m wrong. So i thought is there a python way of doing something like this? On Wed, Jun 8, 2011 at 9:34 AM, Chris Angelico wrote: > On Wed, Jun 8, 2011 at 1:10 PM, Abhijeet Mahagaonkar > wrote: > > So i have requested a server space so I need some inputs on how i will be >

Re: Running a Python script on a web server

2011-06-07 Thread Abhijeet Mahagaonkar
I guess i got my answer :) Thanks Regards, Abhijeet On Wed, Jun 8, 2011 at 12:01 PM, D'Arcy J.M. Cain wrote: > On Wed, 8 Jun 2011 11:22:53 +0530 > Abhijeet Mahagaonkar wrote: > > >>Python doesn't normally run in a web browser. There's two easy options: > &g

Re: (Maybe off topic) Can someone explain what a finite state machine is?

2011-07-19 Thread Abhijeet Mahagaonkar
You might wanna have a look at theory of computation. http://www.youtube.com/user/Coderisland#g/c/601FC994BDD963E4 in this lecture series you will have an explanation for FSM from the ground up -AB On Tue, Jul 19, 2011 at 7:02 PM, Matty Sarro wrote: > Hey everyone. I am currently reading throug

Tips on Speeding up Python Execution

2011-04-08 Thread Abhijeet Mahagaonkar
Appreciating your help in this one. Warm Regards, Abhijeet. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tips on Speeding up Python Execution

2011-04-08 Thread Abhijeet Mahagaonkar
Thats awesome. Its time I migrate to 3 :) On Fri, Apr 8, 2011 at 11:29 PM, Raymond Hettinger wrote: > On Apr 8, 12:25 am, Chris Angelico wrote: > > On Fri, Apr 8, 2011 at 5:04 PM, Abhijeet Mahagaonkar > > > > wrote: > > > I was able to isolate that major ch

Re: Is there anyway to use urllib2 to download a file from http server?

2011-09-10 Thread Abhijeet Mahagaonkar
I guess urlretrieve() would do the job -AB On Sat, Sep 10, 2011 at 9:11 PM, crow wrote: > As the title. > > Or is there other module that can handle this task? > > Many thanks in advance > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/pyt

Help With Tkinter.Checkbutton Widget

2011-02-17 Thread Abhijeet Mahagaonkar
27;]=q.get() root.mainloop() Could you please let me know what I'm doing wrong? I have tried multiple ways of accomplishing this for eg. by having a command option which will just toggle the list_of_dict[i]['Flag']=not(list[i]['Flag']) Please let me know the best way

Need to parse python dictionaries into xml

2010-06-15 Thread abhijeet thatte
{.. Is it possible to parse such dictionaries into xml without any new tags other than tags used in dictionaries. Thanks, Abhijeet -- http://mail.python.org/mailman/listinfo/python-list

Re: Need to parse python dictionaries into xml

2010-06-16 Thread abhijeet thatte
:{...}}} I think this example gives good insight into kind of dict structure I am having. Now I want to have every dict tag as xml tag with hierarchy maintained. Thanks Abhijeet On Tue, Jun 15, 2010 at 11:09 PM, Stefan Behnel wrote: > abhijeet thatte, 16.06.2010 03:05: > > I am a n

Re: Need to parse python dictionaries into xml

2010-06-16 Thread abhijeet thatte
On Wed, Jun 16, 2010 at 10:57 AM, Stefan Behnel wrote: > Hi, please avoid top-posting. > > abhijeet thatte, 16.06.2010 18:46: > > On Tue, Jun 15, 2010 at 11:09 PM, Stefan Behnel wrote: >> >>> abhijeet thatte, 16.06.2010 03:05: >>> >>>> I am a

Re: Need to parse python dictionaries into xml

2010-06-16 Thread abhijeet thatte
On Wed, Jun 16, 2010 at 10:43 AM, Ian Kelly wrote: > On Wed, Jun 16, 2010 at 10:46 AM, abhijeet thatte > wrote: > > I am parsing some hardware format which finally I need to convert in xml. > > The intermediate step is dicts. > > So, the structure looks like this:

Sorting dicts inside dicts

2010-07-02 Thread abhijeet thatte
Hi, I have a huge dict structure like below: * {'module':{'reg_dict_0':{'name':'abc','reg_addr':'2004'},'reg_dict_1':{'name':'xyz','reg_addr':'2002'},'reg_dict_2':{'name':'pqr','reg_addr':'2008'}} * Module dict and reg_dicts contain many elements than shown. I want to sort this 'module' dictionar

Pretty printing with ElementTree

2010-07-09 Thread abhijeet thatte
Hi, Does any one know how to use pretty printing with ElementTree while generating xml files. We can use that with lxml. But I want to stick with it ElementTree. Thanks, Abhijeet -- http://mail.python.org/mailman/listinfo/python-list

Re: Pretty printing with ElementTree

2010-07-09 Thread abhijeet thatte
It worked. Thanks, Abhijeet On Fri, Jul 9, 2010 at 4:03 PM, John Krukoff wrote: > On Fri, 2010-07-09 at 15:46 -0700, abhijeet thatte wrote: > > Hi, > > > > > > Does any one know how to use pretty printing with ElementTree while > > generating xml files. >

Need to import stuff

2010-08-17 Thread abhijeet thatte
Hi, I need to import few files depending on the user input. For eg if user gives an input as "abcd" then I will have * import "abcd.py".* Can not have any hard coding in the code. Does any one know how to solve the problem. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Fwd: Need to import stuff

2010-08-17 Thread abhijeet thatte
me is not supported.". Any solution?? On Tue, Aug 17, 2010 at 3:27 PM, Jerry Hill wrote: > On Tue, Aug 17, 2010 at 6:21 PM, abhijeet thatte > wrote: > > Hi, > > I need to import few files depending on the user input. For eg if user > gives > > an input as "abcd&