First  |  Prev |  Next  |  Last
Pages: 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
Another MySQL Problem
On 6/23/10 6:45 AM, Victor Subervi wrote: Hi; I have this line: cursor.execute('select clientEmail from clients where client=%s', (string.replace(client, '_', ' '))) clientEmail = cursor.fetchone()[0] cursor.execute('select * from %s' % (client)) client = "Lincoln_Properties" With ... 24 Jun 2010 03:07
Instance method decorator garbage collection problem
Hi, I've written a decorator that prints exceptions and I'm having some trouble with garbage collection. My decorator is: import sys def print_exception_decorator(fn): def decorator(self, *args, **kwds): try: return fn(*args, **kwds) except: print 'Excep... 23 Jun 2010 13:57
example of multi threads
I am looking for a simple multi threaded example. Lets say I have to ssh to 20 servers and I would like to that in parallel. Can someone please provide a an example for that? thanks ... 24 Jun 2010 05:16
encodings.idna.ToASCII( unicodeStr ) != unicodeStr.encode( 'idna')
En Tue, 22 Jun 2010 11:02:58 -0300, <python(a)bdurham.com> escribi�: Python 2.6.4 (Win32): Anyone have any explanation for the following encodings.idna.ToASCII( unicodeStr ) != unicodeStr.encode( 'idna' ) Given that other processes may have to use the output of these methods, what is the recomme... 23 Jun 2010 04:04
[Germany / München] Munich Python User Group Meeting this thursday!
Hi, sorry for choosing this forum for a regional announcement - just hoping to attract some local users who don't read the local mailing list. After a while of silence, there will be a meeting of the µPy (Münchner Python User Group) this thursday (June 24th). See here for further information: http://wik... 23 Jun 2010 02:59
Strange factory pattern
En Tue, 22 Jun 2010 23:33:55 -0300, Zac Burns <zac256(a)gmail.com> escribi�: In the threading module there are several code bits following this convention: ### def Class(*args, **kwargs): return _Class(*args, **kwargs) class _Class(... ### This is true for Event, RLock, and others. ... 23 Jun 2010 01:54
P= /V:P == 2P*V because fist '/V' is actually '/' divided by 'V'comp.language.python.brood of vipers! Look! I got it, Gus! I got it! Look: P= /V:P == 2P*V because fist '/V' is actually '/' divided by 'V'
I got it, Gus! I got it! Look: P= /V:P == 2P*V because fist '/V' is actually '/' divided by 'V' P= /V:P == 2P*V because fist '/V' is actually '/' divided by 'V' P= /V:P == 2P*V because fist '/V' is actually '/' divided by 'V' P= /V:P == 2P*V because fist '/V' is actually '/' divided by 'V' P= /V:P == 2... 23 Jun 2010 00:49
"isinstance" question
I want to test whether an object is an instance of any user-defined class. "isinstance" is less helpful than one would expect. import types class foo() : # define dummy class .... pass .... x = foo() type(x) <type 'instance'> isinstance(x, types.ClassType) False ... 23 Jun 2010 06:13
Changing the Emacs engine to Guile
Very EDUCATIONAL VIDEO http://www.youtube.com/watch?v=wzr_hRsSuGM&feature=related On Jun 22, 1:40 pm, Cecil Westerhof <Ce...(a)decebal.nl> wrote: Op dinsdag 22 jun 2010 19:28 CEST schreef Pascal J. Bourguignon: this (while (re-search-forward ...)) loop modifies the line for each occurence of... 22 Jun 2010 21:32
TkInter bind() event is not firing event trigger
So I want to execute some code when the user double clicks an item in a ListBox. The documentation says I should use the listbox.bind() method, specifying the Double-l event to detect the double left mouse button click. My code is this: gsItems = Listbox(root, width=76, height=30, selectmode="browse", yscroll=sc... 22 Jun 2010 21:32
First  |  Prev |  Next  |  Last
Pages: 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84