First  |  Prev |  Next  |  Last
Pages: 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434
Arithmetic sequences in Python
Please visit http://www.python.org/peps/pep-0204.html first. As you can see, PEP 204 was rejected, mostly because of not-so-obvious syntax. But IMO the idea behind this pep is very nice. So, maybe there's a reason to adopt slightly modified Haskell's syntax? Something like [1,3..10] --> [1,3,5,7,9] (1,3..10... 24 Jan 2006 00:08
can't solve an exercise-help me with it
I'm studying python newly and have an exercise that is difficult for me as a beginner.Here it is : "Write a program that approximates the value of pi by summing the terms of this series: 4/1-4/3+4/5-4/7+4/9-4/11+.... The program should prompt the user for n, the number of terms to sum and then output the sum of... 12 Jan 2006 03:01
Spelling mistakes!
I've spent hours trying to find a bug that was a simple spelling mistake. in an init method I declare a variable self.someLongName later in a different method of the class I use self.sumLongName Now I really meant self.someLongName. In fact I don't want a variable called sumLongName. Frankly how are you eve... 13 Jan 2006 03:30
error rising while connecting oracle 9i
Hi i am connecting my database oracle 9i. While connecting i am getting the following error connection = cx_Oracle.connect("myusername", "mypassword", "python") RuntimeError: Unable to acquire Oracle environment handle please send the solution Thank you regards Python Eager ... 7 Jan 2006 03:30
how to show Chinese Characters in the value set of a dictionary
Hi there, I have a dictionary with values of Chinses Characters. For example, dict = {} dict['c1']="中国一" dict['c2']="中国二" dict.values() ['\xd6\xd0\xb9\xfa\xb6\xfe', '\xd6\xd0\xb9\xfa\xd2\xbb'] Since the result of dict.values will be inserted into web pages and handled by j... 13 Jan 2006 10:22
how-to POST form data to ASP pages?
I need to post form data to an ASP page that looks like this on the page itself... <form method='POST'><input src=\icons\devices\coffee-on.gif type='image' align='absmiddle' width=16 height=16 title='Off'><input type='hidden' value='Image' name='Action'><input type='hidden' value='hs.ExecX10ByName "Kitchen E... 8 Jan 2006 17:23
PythonWin troubleshooting
Having problems with PythonWin on Windows XP SP1. Shortly after startup and trying to debug I see: LoadBarState failed - LoadBarState failed (with win32 exception!) Things go down hill quickly from there. From there I see stuff like: [Dbg]>>> Traceback (most recent call last): File "C:\Python24\Lib\site... 18 Dec 2005 12:11
python speed
Hi are there any future perspectives for Python to be as fast as java? i would like to use Python as a language for writing games. best regards krystian ... 6 Jan 2006 21:51
mxODBC sql MSAccess
Hello, I'm new to python and trying to get records from an MSAccess database using mxODBC. It works, but the output is not formatted the way I want it. Here's the script: import mx.ODBC.Windows as odbc driv='DRIVER={Microsoft Access Driver (*.mdb)};DBQ=d:/Access Databases/Quotations2005' conn = odbc.Driv... 23 Nov 2005 03:30
strange file.write() behavior on windows: $ConvertToNonresident, $ReplaceAttribute2
while taking some rough disk performance measures on windows machines, and snooping with FileMon, i've noticed some odd behavior here's the little nul-writer i'm running: def writeTest(nBlocks, blockSize): """write nBlocks*blockSize nuls to a file""" f = open("writeTest.out", "wb") nulBlock = '\0'*block... 16 Nov 2005 18:56
First  |  Prev |  Next  |  Last
Pages: 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434