469,935 Members | 1,792 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,935 developers. It's quick & easy.

Pyrex: TypeError: unsubscriptable object

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

iD8DBQFCkz6MHn4UHCY8rB8RAlTZAJ0ZXfdmkZuXFLPrhGvaYU BoS7YTVQCZAZhp
Fc65UgWF+rCkilTs0BAmNSU=
=PZpG
-----END PGP SIGNATURE-----
Jul 19 '05 #1
0 3449

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Gary Stephenson | last post: by
10 posts views Thread by Kyler Laird | last post: by
reply views Thread by Pawel Oleksik | last post: by
2 posts views Thread by Balaji | last post: by
7 posts views Thread by Jim Lewis | last post: by
9 posts views Thread by k.retheesh | last post: by
1 post views Thread by Nitin | last post: by
3 posts views Thread by skip | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.