Re: delete namespaces

2011-03-30 Thread Ritesh Nadhani
On Tue, Mar 29, 2011 at 6:14 PM, monkeys paw wrote: > How do i delete a module namespace once it has been imported? > > I use > > import banner > > Then i make a modification to banner.py. When i import it again, > the new changes are not reflected. Is there a global variable i can > modify? > --

Re: Suggestion Reqd for Designing a Website in Python

2011-02-26 Thread Ritesh Nadhani
I would look into Flask or Pyramid. Just my $0.02. On Fri, Feb 25, 2011 at 7:03 AM, Daniel Fetchinson wrote: >>> >I have developed one big Machine Learning software a Machine >>> >Translation system in Python. >>> >Now, I am thinking to make a User Interface of it and upload it in a >>> >web sit

Re: Converting from shell to python

2011-02-21 Thread Ritesh Nadhani
Hello cmd is already a list after cmd.split(). So, suprocess.Popen(cmd, ) On Mon, Feb 21, 2011 at 8:33 AM, Rita wrote: > Hello, > > I have been using shell for a "long" time and I decided to learn python > recently. So far I am liking it a lot especially the argparse module which > makes m

select.kqueue.control changelist argument

2009-09-02 Thread Ritesh Nadhani
Hi According to the docs at, http://docs.python.org/library/select.html Low level interface to kevent * changelist must be an iterable of kevent object or None * max_events must be 0 or a positive integer * timeout in seconds (floats possible) I am not sure I underst

Re: Using select.kqueue()

2009-09-02 Thread Ritesh Nadhani
Indeed, I was facing that issue. Appplying the patch to the select26 module now works. Also, I had to change: kq.control([]...) to kq.control(ev, ...) Not sure what happens when you pass None as the first parameter. On Tue, Sep 1, 2009 at 5:47 AM, wrote: > On 07:51 am, rite...@gmail.com wro

Using select.kqueue()

2009-09-01 Thread Ritesh Nadhani
Hi I am trying to use kqueue. Since, I am on v2.5, I use the baclport: http://pypi.python.org/pypi/select26/0.1a3. Following the example at: http://julipedia.blogspot.com/2004/10/example-of-kqueue.html (which works perfectly as it tells all events), I tried to port it to Python: http://www.bpast

Spawing a daemon from my app and closing only when the daemon is done its job

2008-10-02 Thread Ritesh Nadhani
Hello So I have a wxPython GUI app. I have two independent modules which are command line are more of a daemon app which does separate but related processing for the whole system. Now, I am able to spawn the daemons and even close it when my wxPython app closes. But what I want is that if the da

Python import path issue. Suggestions and ideas?

2008-10-02 Thread Ritesh Nadhani
Hello All So my sourcecode has the following structure: / - app.py - commonlib.py - app.cnf - module/ - module/submodule/ - module/submodule/app2.py Commonlib is generally used for one method: def GetConfValue(section, item): config = ConfigParser.ConfigParser() config.read( "app.cnf" )