Installing pysqlite on Win64

2010-11-20 Thread Navid Parvini
Dear All, I want to install pysqlite on my Windows 64 bit machine. I have python 2.4.3 on it. Would you please let me know how can I do it? That is, I need to use the source file (i.e pysqlite-2.5.6.tar.gz) or there is an executable file to install. Thank you in advance. Regards, Navid

import a module in a destructor of a class

2010-08-23 Thread Navid Parvini
Dear All, I have a python module named "book.py" I want to import it in a destructor of a class. class Excel:       def __init__( self, ... ):     . . .     def __del__( self ):   import book but I got error. Would you please help me? Can I import a module in a destructor?

PIL

2010-08-03 Thread Navid Parvini
Dear All, I want to convert a .png file to .xpm using PIL. I used the following command: Image.open( "t1.png").save("a1.xpm"). But it doesn't work and I could not convert it. Would you please help me and let me know that how can I convert/save .xpm files in PIL. Thank you in advance. Thanks.

store .png file in a script

2010-06-06 Thread Navid Parvini
Dear All, Would you please let me know that how can I store a .png or .gif or .jpg file, in a python script? Thank you in advance. Navid -- http://mail.python.org/mailman/listinfo/python-list

scope

2008-02-03 Thread Navid Parvini
Dear All, I have the following two methods in a module. I cannot put them in a class, as the code is a complicated one. def a(num): found = num in Numlist print found def b(): scop = {} scop['Numlist'] = [1,2,3] scop['a'] = a exec("a(3)",scop) How can I access the "Numl

File Info

2008-01-01 Thread Navid Parvini
Dear All, Would you please tell me if there is another function instead of stat that gives the same information ( such as the size of the file) but faster? Thank you in advance. Navid - Looking for last minute shopping deals? Find them fast with Yahoo! S

Process Id

2007-12-03 Thread Navid Parvini
Dear All, Would you please help me to find a way to get the list of all processes id on the machine along with their parent processes. Thank you in advance. - Never miss a thing. Make Yahoo your homepage.-- http://mail.python.org/mailman/

existence of a program

2007-11-24 Thread Navid Parvini
Dear All, Would you please tell me that how can I check for existence of a program (for example Perl) on Windows and Linux by a Python code? Thank you in advance. Navid - Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try

standalone module

2007-07-15 Thread Navid Parvini
Dear All, I want to create a standalone program ( an exe file ) from my python files which works on Windows and Linux. Could you please tell me how to do that? Thank you in advance, Navid - Got a little couch potato? Check out fun summer activities for

standalone executables

2007-07-10 Thread Navid Parvini
Dear All, I need a reference to get all the programs which used to package Python programs into standalone executables files. Would you help me? Thank you in advance. Navid - Park yourself in front of a world of choices in alte

CPU usage.

2007-05-08 Thread Navid Parvini
Dear All, I want to get the CPU usage in my code. Is there any module in Python to get it? Also I want to get in on Windows and Linux. Thank you in advance. Navid - Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Y

CPU usage

2007-05-08 Thread Navid Parvini
Dear All, I want to get the CPU usage in my code. Is there any module in Python to get it? Would you please help me? Thank you in advance. Navid - Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games.-- http:

Exception

2007-03-07 Thread Navid Parvini
Dear All, When an exception occurs in a Python Qt application and it is not caught, an error message is printed to stderr and the control is given back to the event handler (similar to the interactive Python session). The resources allocated before the error occurred is not flushed, but rathe

Exception

2007-03-07 Thread Navid Parvini
Dear All, When an exception occurs in a Python Qt application and it is not caught, an error message is printed to stderr and the control is given back to the event handler (similar to the interactive Python session). The resources allocated before the error occurred is not flushed, but rathe

Exception

2007-02-12 Thread Navid Parvini
Dear All, Would you please tell me if there is a pysignal or method that called when an exception is occurred? (I don't want to use "try" method) Thank you in advance. Navid - Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & D