First  |  Prev |  Next  |  Last
Pages: 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
win32com sql update problem
Consider the following snippet of code: import win32com.client DSN = 'PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=M:\\Finance\\camel\ \camel.mdb;' conn.Open(DSN) cursor = conn.Execute("UPDATE tblInvoice SET InvComments='Python' WHERE InvBillingPeriod = 'April 2010' AND InvJobCode = '2169'") rows = cursor.Af... 13 May 2010 00:43
Dynamically compiling and reloading SWIG .pyd file
I am creating an application which has it's code split between python and C. The Python is used to provide a high level GUI interface and the C is for low level functions. I use SWIG to create Python Bindings for the C functions. I want to implement a feature where there is a button in the toolbar of the GUI which ... 11 May 2010 05:40
Iterating a sequence two items at a time
Hi! I have a list [1,2,3,4,5,6] which I'd like to iterate as (1,2), (3,4), (5,6). I can of course roll my own, but I was wondering if there was already some existing library function that already does this. def as_pairs(seq): i = iter(seq) yield (i.next(), i.next()) Question to this code: Is the ... 11 May 2010 05:40
Difference between 'is not' and '!=' ?
On Mon, May 10, 2010 at 4:25 PM, AON LAZIO <aonlazio(a)gmail.com> wrote: As subject says, what is the differences of 'is not' and '!='. Confusing.. != checks value inequality, `is not` checks object identity / "pointer" inequality Unless you're doing `foo is not None`, you almost always want !=. By way of demo... 10 May 2010 19:52
Problem displaying jpgs in Tkinter via PIL
Hi everyone, I'm new to Python and have been playing around with it using the Enthought Python distribution for Mac OS X 10.6.3 (EPD academic license, version 6.1 with python 2.6.4). It's been great learning the basics, but I've started running into problems when I'm trying to use the PIL library with Tkint... 11 May 2010 13:22
[Epydoc-devel] How to? epydoc --top=README
Pythonistas: I have a question to epydoc-devel, but it might be languishing: http://sourceforge.net/mailarchive/forum.php?thread_name=l2n860c114f1005061707k1ccf68cdz277a3d875b99fe04%40mail.gmail.com&forum_name=epydoc-devel How do you populate the index.html output with your (insanely clever) contents of your ... 10 May 2010 16:32
How to measure speed improvements across revisions over time?
I know how to use timeit and/or profile to measure the current run-time cost of some code. I want to record the time used by some original implementation, then after I rewrite it, I want to find out if I made stuff faster or slower, and by how much. Other than me writing down numbers on a piece of paper on my ... 11 May 2010 10:01
Hex String
How can I concatenate 2 hex strings (e.g. '\x16' and '\xb9') then convert the answer to an integer? When I try i always end up with the ASCII equivalent! Thanks, Anthony ... 10 May 2010 16:32
Turbogears 2 training this weekend in Washington, DC USA
Hi all, Sorry for the short notice. We (the Zope/Python Users Group of DC) are having a TurboGears 2 training class this weekend in Washington, DC USA taught by core developer Chris Perkins. Please consider attending! And, I would appreciate you spreading the word to anyone you think may be interested as w... 10 May 2010 15:25
Upgrade Python 2.6.4 to 2.6.5
Just upgraded on my Windows 7 machine my copy of 2.6.4 to 2.6.5. However doing sys.version still shows 2.6.4 even so python.exe is dated 19. March 2010 with a size of 26.624 bytes. Is this a known issue? Or did I do something wrong? If I install to a new folder all is well, but I would have to install all... 12 May 2010 11:21
First  |  Prev |  Next  |  Last
Pages: 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131