First  |  Prev |  Next  |  Last
Pages: 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
Can't Add Variable
On Mon, Jan 4, 2010 at 12:28 PM, Victor Subervi <victorsubervi(a)gmail.com> wrote: Hi; I have this code snippet:     sql '''create table if not exists %sCustomerData ( I think you may have forgotten the "=" after sql. ... 6 Jan 2010 08:36
TypeError: can only concatenate list (not "tuple") to list
Is there any reason for this error? Apart from "nobody cared to write the code" py> [1,2,3] + (4,5) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: can only concatenate list (not "tuple") to list In-place addition += does work: py> a = [1,2,3] py> a += (4,5) py> a... 6 Jan 2010 08:36
Any Swisses here?
Congrats! Your choice -- to ban building of muslim mosques -- is the only choice to save our civililazation. This yellow plague (incl. Chinese etc) must be eliminated from our Planet, They are very cunning critters, they can play on strings of compassion, but its riffraffs. What do you know about Russia? Who are... 26 Jan 2010 15:29
How to Suppress Interactive Assignment to "_"
The gettext module uses the convention of defining a function named "_" that maps text into its translation. This conflicts with the automatic interactive interpreter assignment of expressions to a variable with that same name. While if you are careful, you can avoid that assignment while debugging, and you can ... 4 Jan 2010 04:50
Dynamic text color
Hi All, I am new to Python and the list so I hope I am posting this correctly... I am working on a way to have text automatically formated in a Tkiniter Text widget and would like some input on my code. Currently I am using Python 2.5 because the server I use has that installed. Tkinter is tk8.4. Most of... 8 Jan 2010 18:26
Solved: TypeError: startView() takes exactly 1 argument (3 given)
ok, problem solved. In the directory the plugin lives I have(had) a directory called 'backup' to save things just in case I mess up. Guess what, RB apparently looks into that directory too and uses the class, py file, it finds there instead of the one I am making changes to. Dave Angel wrote: Ron Croo... 30 Dec 2009 13:07
How to test a URL request in a "while True" loop
I'm actually using mechanize, but that's too complicated for testing purposes. Instead, I've simulated in a urllib2 sample below an attempt to test for a valid URL request. I'm attempting to craft a loop that will trap failed attempts to request a URL (in cases where the connection intermittently fails), and rep... 13 Jan 2010 21:06
I think I found a bug in Python 2.6.4 (in the inspect module)
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. import inspect def a(b=1): pass .... inspect.getargvalues(a) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "... 31 Dec 2009 01:16
[ANN] Pyspread 0.0.13 released
Pyspread 0.0.13 released ======================== I am pleased to announce the new release 0.0.13 of pyspread. About: ------ Pyspread is a cross-platform Python spreadsheet application. It is based on and written in the programming language Python. Instead of spreadsheet formulas, Python expressions... 27 Dec 2009 23:55
How do I install GMPY 1.11 on a Mac with OS X 10.6 and Python 3.1?
Ok, so I got a MacBook Air. Has OS X 10.6 (Snow Leopard) and Python 2.6.1 already installed. So I install Xcode, download macports and download gmpy-1.11rc1. Following the instructions in mac_build.txt, I do the following: - sudo /opt/local/bin/port install gmp This works fine. Then I do - python s... 26 Dec 2009 15:27
First  |  Prev |  Next  |  Last
Pages: 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228