gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] assert(float()) problem in Debian


From: Julio Jiménez
Subject: Re: [Gnumed-devel] assert(float()) problem in Debian
Date: Mon, 02 Sep 2002 18:28:18 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1

Karsten Hilbert wrote:

and at last...
assert(float(psycopg.apilevel) >= 2.0)
and it's ok., no errors for me.
Interesting.

when you type

assert(float(dbapi.apilevel) >= 2.0)

what is 'dbapi'
From gmPG:

import psycopg
dbapi = psycopg

Karsten
Ok. I supposed it... ;-)

when I type:

>>> import gmPG

>>>gmPG.dbapi
<module 'psycopg' from '/usr........> # then I know dbapi is correct

>>>gmPG.dbapi.apilevel
'2.0'

it reports me a valid string for float converting.

also...

>>>float(gmPG.dbapi.apilevel)
2.0

a valid float...

>>>float(gmPG.dbapi.apilevel) >= 2.0
1

is valid (apilevel >= 2.0)

and at last...

>>>assert(float(gmPG.dbapi.apilevel) >= 2.0)

it's ok. no assertions...

Try to repeat this steps and finally float('2.0') to see if is your Python version buggy. (as indicated
in prev message)
a question.... why don't use Python 2.2.1?...
regards


Julio Jime'nez








reply via email to

[Prev in Thread] Current Thread [Next in Thread]