Multi-language programing playground

2019-10-25 Thread Vishal Rana via Python-list
Folks, I wanted to share a multi-language programming playground that I created recently. I hope you will find it useful. https://code.labstack.com/program Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: How is memory managed in python?

2010-07-20 Thread Vishal Rana
Christian, It stays in RES and VIRT as well. Thanks Vishal Rana On Tue, Jul 20, 2010 at 8:53 AM, Christian Heimes wrote: > Am 20.07.2010 17:50, schrieb Vishal Rana: > > Hi Christian, > > > > I am not sure which one is used in this case, I use htop to see the > m

Re: How is memory managed in python?

2010-07-20 Thread Vishal Rana
ally depends on how often you are doing that > kind of processing, how you want to tune apache. > > Scott M > > On Jul 19, 2010 9:31 PM, "Vishal Rana" wrote: > > Hi, > > > > In my web application (Django) I call a function for some request which > >

Re: How is memory managed in python?

2010-07-20 Thread Vishal Rana
Hi Christian, I am not sure which one is used in this case, I use htop to see the memory used by apache / python. Thanks Vishal Rana On Tue, Jul 20, 2010 at 5:31 AM, Christian Heimes wrote: > > In my web application (Django) I call a function for some request which > > loads like

Re: How is memory managed in python?

2010-07-20 Thread Vishal Rana
Chris, Thanks for the link. On Mon, Jul 19, 2010 at 11:43 PM, Chris Rebert wrote: > On Mon, Jul 19, 2010 at 6:30 PM, Vishal Rana wrote: > > Hi, > > In my web application (Django) I call a function for some request which > > loads like 500 MB data from the databa

How is memory managed in python?

2010-07-19 Thread Vishal Rana
it so? Can't I release that memory? Thanks Vishal Rana -- http://mail.python.org/mailman/listinfo/python-list

A daemon to call a function with configurable interval

2010-06-16 Thread Vishal Rana
Hi, I am working in a django web application. A function 'xyx' need to be called every 2 minutes. I want one http request should start the daemon and keep calling xyz (every 2 minutes) until I send another http request to stop it. Appreciate your ideas. Thanks Vishal Ran

Updating a module level shared dictionary

2010-06-15 Thread Vishal Rana
Hi, A module level dictionary 'd' and is accessed by different threads/requests in a django web application. I need to update 'd' every minute with a new data and the process takes about 5 seconds. What could be best solution where I want the users to get either the old value or the new and nothi

Re: Constructing an if statement from the client data in python

2010-04-13 Thread Vishal Rana
Thanks Chris On Tue, Apr 13, 2010 at 1:08 PM, Chris Rebert wrote: > > On Tue, Apr 13, 2010 at 12:29 PM, Chris Rebert > wrote: > >> On Tue, Apr 13, 2010 at 8:56 AM, Vishal Rana > wrote: > >> > Hi, > >> > > >> > I need to constru

Re: Constructing an if statement from the client data in python

2010-04-13 Thread Vishal Rana
They are bitwise operators! -- http://mail.python.org/mailman/listinfo/python-list

Re: Constructing an if statement from the client data in python

2010-04-13 Thread Vishal Rana
They are bitwise operators! Thanks Vishal Rana -- http://mail.python.org/mailman/listinfo/python-list

Re: Constructing an if statement from the client data in python

2010-04-13 Thread Vishal Rana
They are bitwise operators! Thanks Vishal Rana -- http://mail.python.org/mailman/listinfo/python-list

Constructing an if statement from the client data in python

2010-04-13 Thread Vishal Rana
Hi, I need to construct an if statement from the data coming from the client as below: conditions: condition1, condition2, condition3, condition4 logical operators: lo1, lo2, lo3 (Possible values: "and" "or") Eg. if condition1 lo1 condition2 lo3 condition4: # Do something I can think of ev