First  |  Prev |  Next  |  Last
Pages: 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
ConfigParser.get() defaults?
With a normal dictionary, I can specify a default fallback value in the event the requested key isn't present: d = {} print d.get(42, 'Some default goes here') However, with the ConfigParser object, there doesn't seem to be any way to do a similar cp = ConfigParser(...) # ... print cp.get... 8 May 2010 16:42
unable to get Hudson to run unit tests
Hello, I apologize if this is not the appropriate forum for a question about Hudson (, but I did not know where else to ask and my web searches have not been fruitful. I'm attempting to use Hudson to run nose ( unit tests but ... 11 May 2010 13:22
Cross-platform file paths
Until now, I have used the UNC under Windows (XP) to allow my program to access files located on a Samba-equipped *nix box (eg. os.path.normpath(r"\\serverFQDN\sharename\dir\filename")). When I try to open this file under Linux (Red Hat 5), I get a file not found error. Is there a cross-platform method for acces... 9 May 2010 01:25
listing exported functions in a DLL
is there a way using ctypes to list the exported functions of a DLL? This is what I was hoping to do... from ctypes import * myDLL = windll.some_dll # what is this method? does it exist? list_of_exported_functions = myDLL.list_exported_functions() ... 7 May 2010 07:48
importing modules
Hello, I have a question about importing python modules. I have modul package, with submodules. So how can a submodul access a modul that is on level upper? Is there something like "import ../../blah"? I don't mean something like this: "import bla.blub.moep" Kind Regards, Richi ... 7 May 2010 08:54
ActivePython - how to configure portable framework?
I downloaded, it contains two folders and 3 files: SystemFolder INSTALLDIR install.bat Anyone know how to configure this Python environment as "portable application" to work with it without installation, to set a fully-functional Python environment... 8 May 2010 12:18
No module named server
Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)] on win32 Script: from http.server import HTTPServer, CGIHTTPRequestHandler Result: Traceback (most recent call last): File "", line 1, in <module> from http.server import HTTPServer, CGIHTTPRequestHandler File "F:\Ch... 7 May 2010 04:32
Extract a bordered, skewed rectangle from an image
We have a scanned document on which a label has been attached. The label has been designed to have a border that makes it easy to determine the correct orientation and area of the label. The label portion of the scanned image needs to be extracted and deskewed as an image. The contents of the label will change,... 9 May 2010 08:53
Picking a license
aahz(a) (Aahz) writes: In article <4BE05D75.7030301(a)>, Rouslan Korneychuk <rouslank(a)> wrote: The only question I have now is what about licensing? Is that something I need to worry about? Should I go with LGPL, MIT, or something else? Which license you use depe... 20 May 2010 19:24
2to3 issues with execfile on python 3.0 on files with encoding
Right now, it seems that the default implementation of execfile in 2to3 is something as: exec(compile(open(file).read()+"\n", file, 'exec'), globals, locals) But it seems it won't deal with encodings properly... and also, in CPython just making an open without a close is OK, because of the reference counting, ... 6 May 2010 20:56
First  |  Prev |  Next  |  Last
Pages: 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134