Pyrex: TypeError: unsubscriptable object

Luis P. Mendes luis_lupe2XXX at netvisaoXXX.pt
Tue May 24 10:47:40 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm just transforming a Python module into Pyrex, and I get the
following error:
File "indicadorPyrex.pyx", line 37, in indicadorPyrex.volatilidade
~    h1 = precoMax[barra]

I made no changes to this module except including 'int' for two
variables in the def argument of the function.

I also tried to declare cdef float h1, but I get the same error.

What can be wrong?

Thanks,

Luis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCkz6MHn4UHCY8rB8RAlTZAJ0ZXfdmkZuXFLPrhGvaYUBoS7YTVQCZAZhp
Fc65UgWF+rCkilTs0BAmNSU=
=PZpG
-----END PGP SIGNATURE-----



More information about the Python-list mailing list