First
|
Prev |
Next
|
Last
Pages: 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
self.__dict__ tricks This is not a request for help but a request for comments: Consider the following code and note that 1)The initializer uses the dictionary style of arguments 2)The check loop executes before all of the class variables are declared ## -------------------------------------------------------------------- class for... 4 Nov 2009 19:44
Aaaargh! "global name 'eggz' is not defined" How can one check that a Python script is lexically correct? As my Python apps grow in complexity and execution, I'm finding it more often the situation in which a program dies after a lengthy (i.e. expensive) run because the execution reaches, say, a typo. Of course, this typo needs to be fixed, but I'd like... 3 Nov 2009 08:10
ImportError: No module named _md5 - Please help Hi, I am trying to run a python script and got this error. import _md5 ImportError: No module named _md5 Googling the problem suggested that I install the 'py25-hashlib'. the following does not work for me 'sudo port install py25-hashlib' , trying to install MacPorts raised many problems. My questi... 30 Oct 2009 05:39
Win XP: How to hide command window for sub processes? On Thu, Oct 29, 2009 at 3:25 AM, Rüdiger Ranft <_rdi_(a)web.de> wrote: klausfpga schrieb: Hi, I have a Python script which wants to start a subprocess and wait for it to finish. However I would like to have NO command window popping up during execution. You need to specify the hide p... 4 Nov 2009 04:12
PyGDChart2 module Hi all, I was looking for a simple chart drawing Python module and as a user of the gd library and its Python interface, I was interested in the Python interface to the gdchart library (http://www.fred.net/brv/ chart/). Unfortunately, this module seems to have disappeared: its former URL (http://www.nullcube.com... 3 Nov 2009 05:59
how to zip a StringIO object? Hi, I try to run the following code: def generate_zip(object_list, template): result = StringIO.StringIO() zipped = zipfile.ZipFile(result, "w") for object in object_list: pdf = generate_pdf(object, template) if not pdf: raise IOError("Problem with generating invoice ... 28 Oct 2009 16:14
Freezing pycrypto Hello everyone, I'm trying to freeze PyCrypto on Linux (using freeze.py) and having trouble with it, can you help me? PyCrypto is used by paramiko (ssh client module). I have added following in the Modules/Setup while building Python (This has to be done because freeze.py requires that all compiled extensio... 28 Oct 2009 09:32
ftpilb.FTP.stor...() freeze mystery Hi, I am trying to upload a bunch of web pages to a hosting service. I have a connected ftplib.FTP object and can upload files manually from an IDLE command line using the methods storlines () for html files and storbinary () for the pictures. So far no problem. In order to upload the whole set of files I wr... 30 Oct 2009 05:39
IDLE python shell freezes after running show() of matplotlib I am having a weird problem on IDLE. After I plot something using show () of matplotlib, the python shell prompt in IDLE just freezes that I cannot enter anything and there is no new ">>>" prompt show up. I tried ctrl - C and it didn't work. I have to restart IDLE to use it again. My system is Ubuntu Linux 9.04.... 9 Nov 2009 17:44
unicode and dbf files Greetings, all! I would like to add unicode support to my dbf project. The dbf header has a one-byte field to hold the encoding of the file. For example, \x03 is code-page 437 MS-DOS. My google-fu is apparently not up to the task of locating a complete resource that has a list of the 256 possible values a... 28 Oct 2009 01:56 |