> An example of result before the call to calc_numbers is: [50L, -1, 1, -1]
An example of result before the call is: [50L, -1L, 1L, -1L]
Sorry about that.
Thanks,
Patricia
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listin
Hi:
>it would be really helpful to see an example of 'result' before and
>after the call to calc_numbers() as well as the code for calc_numbers if
>possible.
An example of result before the call to calc_numbers is: [50L, -1, 1, -1]
an example after the call is: [50L, 25, ' ', 25]
the code
hi patricia,
it would be really helpful to see an example of 'result' before and
after the call to calc_numbers() as well as the code for calc_numbers
if possible.
this will likely reveal the problem that you are having.
thanks,
-wesley
On 4/12/06, Patricia <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
Hi,
This is my code:
conn = MySQLdb.connect(host = "localhost", user = "root", passwd = "",
db ="mydb")
cursor = conn.cursor()
cursor.execute("""SELECT h, k, l, m, s, t
FROM targets WHERE target_name = %s""", (target))
result = cursor.fetchone()
alist = helperfunc.calc_n