Excel library with unicode support
Hi, I want to create an Excel file, but I don't to use com or any win32 object. Because, the file should be opened via OpenOffice. I found pyXLWriter, but it doesn't support unicode or non-ascii characters. Is there a python library, that is able to create Excel files with unicode characters. I think, pyXLWriter is a stopped project. Thanks, Mike -- http://mail.python.org/mailman/listinfo/python-list
Re: Excel library with unicode support
Thanks, a lot. It helped me so much. Mike -- http://mail.python.org/mailman/listinfo/python-list
execute commands independantly
Hi, I am trying to execute an executable or a pyton script inside my program. I looked at the subprocess and os module. But all the functions in these modules blocks my application. What I want to do is run the subprocess without any concern. I don't care of its return type or child signals. Just start and let it run independantly. Thanks, Mike -- http://mail.python.org/mailman/listinfo/python-list
Re: execute commands independantly
You're right, I tried subprocess.call and os.spawn* functions. Popen is what I will be happy with. Thanks a lot. Mike -- http://mail.python.org/mailman/listinfo/python-list
Printer List from CUPS
Hi, I want to get the printer list from CUPS. I found some ways using lpstat -p and http://localhost:631/printers but, these ways require some parsing and I am not sure, if the parsing works all the time. A pythonic way would be very helpful. Thanks, Mike -- http://mail.python.org/mailman/listinfo/python-list
Re: Printer List from CUPS
I am using Ubuntu. pycups seems to be not existed any more. Mike -- http://mail.python.org/mailman/listinfo/python-list
Re: Printer List from CUPS
Thanks, a lot, this helped me so much. It was so easy, to compile, install and use the cupsext module. -Mike -- http://mail.python.org/mailman/listinfo/python-list
stdin and py2exe
Hi, I want create a subprocess using Popen and pipe some input to it. Although everything works perfectly while executing python in, it doesn't work if I try with executables made by py2exe. I think, stdin is invalidated if the program becomes an executable. Because I get a "Bad file descriptor" exception in subprogram.py. I will be more than apreciated, if any suggestions occur. Thanks, Mike == main.py == from subprocess import * pInput = Popen('python subprogram.py', stdin=PIPE, shell=True).stdin # pInput = Popen('subprogram.exe', stdin=PIPE, shell=True).stdin # doesn't work pInput.write('Data') pInput.close() == subprogram.py == import sys input = sys.stdin.read() # Throws a bad descriptor exception. print input -- http://mail.python.org/mailman/listinfo/python-list
Re: stdin and py2exe
Yes, it throws exceptions if I build the exe of the subprogram.py. So, is it possible to pipe some data to another py2exe'd application without a console. Mike -- http://mail.python.org/mailman/listinfo/python-list
Elliptic Curve Library
Hi, I need an elliptic curve library that can be used by python. I googled but couldn't find a one. I'll appreciate, if you could show me. Mike -- http://mail.python.org/mailman/listinfo/python-list
Re: Elliptic Curve Library
I will try to implement an ID-Based Cryptography. I also need bilinear pairing operations. Mike vasudevram wrote: > Mike Tammerman wrote: > > Hi, > > > > I need an elliptic curve library that can be used by python. I googled > > but couldn't find a one. I'll appreciate, if you could show me. > > > > Mike > > What is the library you need supposed to do? > > Vasudev Ram > Dancing Bison Enterprises > www.dancingbison.com -- http://mail.python.org/mailman/listinfo/python-list
Function Serialization
I want to serialize a function using its pointer. For example >>> s = """ ... def square(number): ... return number**2 ... """ >>> functions = {} >>> exec s in functions >>> f = functions['square'] >>> f Then, 1. Serialize f, 2. Store it into a file a db. One day later, 3. Retrieve from file or db, 4. Unserialize it 5. Use as it is a normal function, maybe I would set it to an object with setattr Any help will be very useful. Mike -- http://mail.python.org/mailman/listinfo/python-list
Re: Function Serialization
Michele, thank you for the suggestion, it works as you mention. But in my case the function is inside a string and I should exec the string to get the function. Something like this >>> fields = {} >>> s = 'def f(): pass' >>> exec s in fields >>> f = fields['f'] >>> f >>> import shelve >>> d = shelve.open('test.db') >>> d['f'] = f Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.4/shelve.py", line 129, in __setitem__ p.dump(value) TypeError: expected string or Unicode object, NoneType found I am not a pro python developer, so I couldn't understand why it throws exception. I am a bit confused. Sincerely, Mike -- http://mail.python.org/mailman/listinfo/python-list
Re: Garbage collection with QT
Not all leakage problems caused by qt or python. There is a wrapping layer between Qt and Python provided by SIP. Therefore, SIP may cause leakages. Also PyQt had a paintCell memory leakage problem several months ago. If you're using an old snapshot of PyQt or SIP, that would be a problem. Try using the latest snapshots. Also mention your versions and problems to the PyKDE mailinglist, it could be more helpful. If you want to delete C++ objects in Qt, consider using QObject.deleteLater() method. IMHO, this won't help. Mike -- http://mail.python.org/mailman/listinfo/python-list