First  |  Prev |  Next  |  Last
Pages: 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
http://vivalacuba.blogspot.com/
http://vivalacuba.blogspot.com/ ... 4 Jul 2008 21:16
pydev and psycopg2 - weird behaviour
I've been using pydev for a short while successfully, and Django with postgresql as well. psycopg2 is part of that behind the scenes I would imagine, to make django work. Now I'm trying to use psycopg2 in a non-Django program, I'm seeing some weird behaviour My "import psycopg2" is tagged in pyDev (eclip... 4 Jul 2008 16:09
Getting a path from a file object
Newbie question: Let's say I open a new file for writing in a certain path. How do I get that path back? Example: f = open('/some/path/file.ext') some_function(f) '/some/path/file.ext' Does some_function(f) already exist? And if not, how would I define it? -- Andrew ... 5 Jul 2008 07:25
Boost Python - C++ class' private static data blown away before accessing in Python?
I've exposed a C++ class to Python using Boost Python. The class, let's say it's called Entity, contains private static data, which is an array of strings. Though I think it implements it using MFC's CPtrArray. I've also exposed a public function from Entity - let's say it's called foo. This function accesses th... 9 Jul 2008 15:46
Can't get Python for Windows to run
I have Python 2.5 working just fine on my system. I've tried downloading and installing the MS Windows Python extensions, but can't get pythonw.exe (that's the windows executable, right?) to do anything. I double-click it, nothing happens. I run it from a command prompt, it just returns me to the command prompt. ... 7 Jul 2008 11:27
Javascript - Python RSA encryption interoperability
Hello, I'm trying to encrypt a string with RSA. But it needs to be compitable with Dave's JavaScript RSA implementation*. I'm already read and tried lots of different things about RSA and RSA in Python. But could not produce the same result with the javascript library. My experiments could be seen at: http://d... 17 Jul 2008 11:39
origin of error message
hi i was trying to create an image using user selection of a file in tix fileselection box ..and i check for exception like below <start of code snippet> .... from string import split from os.path import basename .... #this is done inside __init__method self.imgsel=FileSelectBox(self.imgSelectFrame) .... ... 4 Jul 2008 10:00
win32com.client (Howto edit Contacts in Outlook)
I am trying to edit Contacts in Outlook. This is so I can transfer numbers from my address book which is an Excel spreadsheet to my mobile phone. I came across the following snippet of code which enabled me to the contacts at least list. I had to root around to discover CdoDefaultFolderContacts (though it wa... 12 Jul 2008 09:29
Static Class Initialization Question.
Hello, I have a class that looks like this: class A(object): def __init__(self, a=0, b=1): self.a, self.b=a, b def __str__(self): return "%s(%d,%d)" % (type(a).__name__, self.a, self.b) I want to have a list of such classes instantiated automatically on startup of my program. My current (most pr... 4 Jul 2008 10:00
re.search much slower then grep on some regular expressions
What can be the cause of the large difference between re.search and grep? This script takes about 5 min to run on my computer: #!/usr/bin/env python import re row="" for a in range(156000): row+="a" print re.search('[^ "=]*/',row) While doing a simple grep: grep '[^ "=]*/' input (... 10 Jul 2008 13:24
First  |  Prev |  Next  |  Last
Pages: 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198