Re: TkInter Scrolled Listbox class?

2024-11-05 Thread Vishal Chandratreya via Python-list
This is what I created ScrollableContainers for. Its usage deviates a bit from standard Tkinter practices in that you add widgets to the frame attribute of a ScrollableFrameTk instance.  [1]twitter.abaf4b19.webp [2]ScrollableContainers pypi.org For your use case, you coul

Resolution of paths in tracebacks

2023-05-31 Thread Vishal Chandratreya
When an exception occurs, the full path to the file from which it originates is displayed, but redundant elements are not removed. For instance: $ ./python ./foo Traceback (most recent call last): File "/home/User/cpython/./foo", line 4, in a() File "/home/User/cpython/./foo", line 3, in a

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: Python MySQL Guide

2018-08-10 Thread Vishal Hule
Sure, no problem. I also added a table of contents at the start of the article you can also refer that On Fri, 10 Aug 2018, 6:43 pm Bob Gailer, wrote: > Thank you for this offer. My reaction is I don't like having to scroll > through one very long page to find what I'm looking for. Might you co

Re: pip3 : command not found

2016-10-30 Thread Vishal Subbiah
; How do I fix this? Regards, Vishal Subbiah Institute for Computational and Mathematical Engineering Masters Student Stanford University On Sun, Oct 30, 2016 at 5:37 PM, Ben Finney wrote: > Vishal Subbiah writes: > > > So I wads trying to install some packages for python3. when I ru

pip3 : command not found

2016-10-30 Thread Vishal Subbiah
et me know how I can fix this. Looking forward to your response. Regards, Vishal Subbiah Institute for Computational and Mathematical Engineering Masters Student Stanford University -- https://mail.python.org/mailman/listinfo/python-list

Re: Idea for removing the GIL...

2011-02-08 Thread Vishal
On Feb 8, 3:05 pm, Adam Tauno Williams wrote: > On Tue, 2011-02-08 at 01:39 -0800, Vishal wrote: > > Is it possible that the Python process, creates copies of the > > interpreter for each thread that is launched, and some how the thread > > is bound to its own interpreter ?

Idea for removing the GIL...

2011-02-08 Thread Vishal
that this has been tried before...any info about that? Thanks and best regards, Vishal Sapre -- http://mail.python.org/mailman/listinfo/python-list

CodeFest - Online Coding Festival by Computer Engineering Society, IT-BHU

2011-01-17 Thread vishal kumar rai
Hello, We are delighted to inform you that CodeFest, the annual International online coding festival of Computer Engineering Society, IT-BHU, has been unveiled. CodeFest is a unique fest wherein concepts of mathematics, logic, artificial intelligence, algorithms, language syntax, etc. are requ

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
hing I can think of eval/exec but not sure how safe they are! Any better approach or alternative? Appreciate your responses :) PS: Client-side: Flex, Server-side: Python, over internet Thanks Vishal -- http://mail.python.org/mailman/listinfo/python-list

base32hex support in python?

2010-02-11 Thread Vishal Shetye
ng at the section 13 of RFC 4648, I think, adding base32hex support would make it conform to RFC 4648. - Vishal DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individu

Re: Re: Help: Group based synchronize decorator

2009-06-21 Thread Vishal Shetye
Thanks. - vishal > -Original Message- > Sent: Friday, June 19, 2009 3:15 PM > To: python-list@python.org > Subject: Python-list Digest, Vol 69, Issue 214 > > Message: 6 > Date: Fri, 19 Jun 2009 10:53:27 +0200 > From: Piet van Oostrum > To: python-list@pyt

Help: Group based synchronize decorator

2009-06-18 Thread Vishal Shetye
ake such assumptions in decorator? Any suggestions/alternatives? thanks vishal DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. I

Re: How to check in CGI if client disconnected

2008-08-25 Thread Vishal
Hi Graham, Thanks for the reply. In my case, it's the other way round. I need to check if the amount of data sent is equal to the file size i want to send. However, the question is - when do i check this? Currently, i am unable to call any cleanup code before exit. Regards, -vishal. O

Re: How to check in CGI if client disconnected

2008-08-24 Thread Vishal
me cleanup signal.signal(signal.SIGTERM, sigtermHandler) --- But even this doesn't work. Regards, -vishal. On Aug 25, 2:58 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sun, 24 Aug 2008 17:51:36 -0300, Wojtek Walczak <[EMAIL PROTECTED]> > escribió: > &

How to check in CGI if client disconnected

2008-08-24 Thread Vishal
, -vishal. -- http://mail.python.org/mailman/listinfo/python-list

Owner of spawned process in threads

2007-10-04 Thread Vishal Sethia
Just trying to understand the behaviour of spawn. Consider I have a function which creates two threads. And in one of the threads I make a call to pexpect.spawn. spawn would fork and create a new new child In this case who becomes the owner of this child process. Is it the thread that spawned beco

Closing pexpect connections using threads

2007-10-03 Thread Vishal Sethia
I am trying to write a multi-threaded program and use pexpect along with it. All works fine until I try to close the connection handle. That thread keeps waiting until the connection handle closes. It actually never comes out of that command(connection_handle.close()). If I manually kill it using k

Compatibility of python2.5 with pytohn2.3

2007-07-18 Thread VISHAL KANAUJIA
Python (Version 2.3 in my case) constructs. Thanks, Vishal -- http://mail.python.org/mailman/listinfo/python-list

Re: binascii.unhexlify ... not clear about usage, and output

2007-07-11 Thread Vishal
On May 30, 1:31 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > Vishal wrote: > > I have a file with a long list of hex characters, and I want to get a > > file with corresponding binary characters > > > here's what I did: > > >>>> import binas

binascii.unhexlify ... not clear about usage, and output

2007-05-30 Thread Vishal
all garbage, atleast textpad and notepad show that I tried doing it for only one string, and this is what I am seeing on the interpreter: >>> x '0164' >>> y '\x01d' I was expecting 'y' would come out as a string with binary characters!!! What am i missing here? Can someone please help. Thanks and best regards, Vishal -- http://mail.python.org/mailman/listinfo/python-list

RE: Watching a file another app is writing

2007-03-12 Thread Vishal Bhargava
What kind of file is it? CSV? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Sanders Sent: Monday, March 12, 2007 11:26 AM To: python-list@python.org Subject: Re: Watching a file another app is writing Gordon Airporte wrote: > I'm trying to find

Regd. converting seconds to hh:mm:ss format

2007-02-20 Thread Vishal Bhargava
Is there an inbuilt library in Python which you can use to convert time in seconds to hh:mm:ss format? Thanks, Vishal -- http://mail.python.org/mailman/listinfo/python-list

RE: can't find a way to display and print pdf through python.

2007-02-10 Thread Vishal Bhargava
Are you trying to do real time or post real time. -Vishal -Original Message- From: krishnakant Mane [mailto:[EMAIL PROTECTED] Sent: Saturday, February 10, 2007 10:50 PM To: Vishal Bhargava Cc: python-list@python.org Subject: Re: can't find a way to display and print pdf through p

RE: can't find a way to display and print pdf through python.

2007-02-10 Thread Vishal Bhargava
Use Report Lab... Cheers, Vishal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of krishnakant Mane Sent: Saturday, February 10, 2007 10:46 PM To: python-list@python.org Subject: can't find a way to display and print pdf through python. hello all,

HELP NEEDED ... Regd. Regular expressions PyQt

2007-02-03 Thread vishal
Hello All: I am trying to work out a regular expression in a PyQt environment for time in hh:mm:ss format. Any suggestions? Thanks, Vishal -- http://mail.python.org/mailman/listinfo/python-list

Regd. Kodos

2007-02-03 Thread vishal
I am trying to use Kodos..but not getting thru'..dont know whats goin on..does anyone have a regular expression for time in hh:mm:ss -Vishal -- http://mail.python.org/mailman/listinfo/python-list

Regd. Regular expressions PyQt

2007-02-03 Thread vishal
Hello All: I am trying to work out a regular expression in a PyQt environment for time in hh:mm:ss format. Any suggestions? Thanks, Vishal -- http://mail.python.org/mailman/listinfo/python-list

Simple Python Based Genetic Algorithm Framework

2006-11-07 Thread Vishal Patil
Check out a new and simple Python base genetic algorithm framework at http://vishpat.googlepages.com/pgap -- Motivation will almost always beat mere talent. -- http://mail.python.org/mailman/listinfo/python-list