Pyrex: TypeError: unsubscriptable object

L

Luis P. Mendes

-----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-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top