First  |  Prev |  Next  |  Last
Pages: 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
Picking a license (was Re: new extension generator for C++)
In article <4BE05D75.7030301(a)msn.com>, Rouslan Korneychuk <rouslank(a)msn.com> 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 depends partly on your political philosophy. Unless you h... 6 May 2010 19:50
List comprehension + lambdas - strange behaviour
Hello. I found this strange behaviour of lambdas, closures and list comprehensions: funs = [lambda: x for x in range(5)] [f() for f in funs] [4, 4, 4, 4, 4] Of course I was expecting the list [0, 1, 2, 3, 4] as the result. The 'x' was bound to the final value of 'range(5)' expression for ALL defined... 7 May 2010 17:50
Windows - select.select, timeout and KeyboardInterrupt
From a quick experiment, it seems that select.select with a timeout doesn't react to a keyboard interrupt until the timeout expires. Specifically, if I do s = socket.socket() select.select([s], [], [], 30) and then press Ctrl-C, Python waits for the 30 seconds before raising KeyboardInterrupt. Is this a kn... 9 May 2010 13:12
crash in Py_EnterRecursiveCall
Hello, I have embedded Python into and extended it with functionality from a graphical tool I use. One of the things it allows me to do is to export Python objects to a simple scripting language ("ascanf"), and call them as if they were native functions. I have the following situation in which I get a systemat... 6 May 2010 08:32
column selection
mannu jha wrote: Hi, I have few files like this: 24 ALA helix (helix_alpha, helix2) 27 ALA helix (helix_alpha, helix2) 51 ALA helix (helix_alpha, helix4) 58 ALA helix (helix_alpha, helix5) 63 ALA helix (helix_alpha, helix5) now with this program: for l... 7 May 2010 08:54
Python - MySQL fetching values
On Thu, May 6, 2010 at 1:47 AM, Kurian Thayil <kurianmthayil(a)gmail.com> wrote: <snip> the expected output is 05:35:05. Now, here is code snippet,                 cursor1=getconnect1.cursor()                 getrows=cursor1.execute("""SELECT TIME(DATE_ADD(info_last_cal... 6 May 2010 05:15
ctypes:Multiple library access problem
Hi everyone, in my script I need to execute multiple separated loading of the same dll library, in order to handle the internal variables with different threads. Consider the followin piece of code: lib1 = cdll.LoadLibrary("MyLib.dll")) lib2 = cdll.LoadLibrary("MyLib.dll")) lib1.var1 = 0 lib2.var1 = 1 ... 6 May 2010 06:21
recursive converting object to string which hasn't __str__ or/and__repr__
Hi, Everybody knows class's __str__ and __repr__ can be used to get readable user representation of an object. But for simple classes or debug aims it is tediously to code these methods. And Python has very powerful reflection. I believe that somebody has already written such library with this method.... 7 May 2010 23:21
PyCon Australia Early-Bird running out!
Registration is open and the Early Bird tickets are running out. Register here: http://pycon-au.org/reg We offer two levels of registration for PyCon Australia 2010: Full (Early Bird) - $165 This is the registration rate for regular attendees. We're offering a limited Early Bird rate for the first 50 to ... 5 May 2010 23:48
Encrypt password within source code.
On Wed, May 5, 2010 at 6:12 PM, Vincent Davis <vincent(a)vincentdavis.net> wrote: I can't think of a way to do this, not sure it is possible but I feel as though I might not know what I don't know. I want to share and example of a python script, to run it needs a google username and password. Is there a way for me ... 5 May 2010 22:41
First  |  Prev |  Next  |  Last
Pages: 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135