First  |  Prev |  Next  |  Last
Pages: 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
Storing a callback function as a class member
Hi, I have a class, where I want to store a callback function as a member to access later: class CallbackClass: def setCallback(self,cb): self.cb = cb def callCallback(self, para): self.cb(para) Doing so, I get the error: callbackFunc() takes exactly 1 parameter (2 given) sel... 8 Jul 2010 10:14
Fascinating interview by Richard Stallman on Russia TV
"Democracy is sick in the US, government monitors your Internet" http://www.youtube.com/watch?v=2BfCJq_zIdk&feature=fvsr Enjoy ..... ... 7 Jul 2010 17:52
Fascinating interview by Richard Stallman on Russia TV
"Democracy is sick in the US, government monitors your Internet" http://www.youtube.com/watch?v=2BfCJq_zIdk&feature=fvsr Enjoy ..... ... 19 Jul 2010 04:50
Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP
>>> Perhaps (if it isn't intentional) this is a bug of the oversight type, that nobody remembered to update the macro? Update in what way? I was guessing that at one time there was no PyMem_Malloc. And that it was introduced to fix Windows-specific problems, but inadvertently without updating ... 7 Jul 2010 16:45
Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP
> Python 3.1.1, file [pymem.h]: PyAPI_FUNC(void *) PyMem_Malloc(size_t); #define PyMem_MALLOC(n) (((n) < 0 || (n) > PY_SSIZE_T_MAX) ? NULL \ : malloc((n) ? (n) : 1)) The problem with the latter that it seems that it's intended for safety but does the opposite... Why ... 7 Jul 2010 18:59
Is This Open To SQL Injection?
On 7/7/10 11:38 AM, Victor Subervi wrote: Hi; I have this code: sql = 'insert into personalDataKeys values (%s, %s, %s)' % (store, user, ', %s'.join('%s' * len(col_vals)) cursor.execute(sql, col_vals) First, its always best to be explicit with insert statements. Meaning, don't rely on the... 8 Jul 2010 13:36
Error message repetition
On 07/07/2010 05:10 PM, Tambet wrote: Hello! I have such problem that: * My console shows maximally x last lines, then truncates * Error message takes 2 line * In case of very big stack trace, there will be 2*x error lines * In such case I do not see any debug output In ... 7 Jul 2010 12:21
tarfile and progress information
Hi, I am packing large files with tarfile. Is there any way I can get progress information while packing? Thanks! Nathan ... 14 Jul 2010 04:25
Python -- floating point arithmetic
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA384 Dear Python-User, today i create some slides about floating point arithmetic. I used an example from http://docs.python.org/tutorial/floatingpoint.html so i start the python shell on my linux machine: dm(a)maxwell $ python Python 2.6.5 (release26-maint, ... 7 Jul 2010 09:02
Python -- floating point arithmetic
Dear Python-User, today i create some slides about floating point arithmetic. I used an example from http://docs.python.org/tutorial/floatingpoint.html so i start the python shell on my linux machine: dm(a)maxwell $ python Python 2.6.5 (release26-maint, May 25 2010, 12:37:06) [GCC 4.3.4] on linux2 Typ... 9 Jul 2010 12:44
First  |  Prev |  Next  |  Last
Pages: 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64