Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in index type inference. #1197

Closed
robertwb opened this issue Jan 8, 2011 · 2 comments
Closed

Error in index type inference. #1197

robertwb opened this issue Jan 8, 2011 · 2 comments

Comments

@robertwb
Copy link
Contributor

robertwb commented Jan 8, 2011

 def bar(foo):
     qux = foo
     quux = foo[error message:

       $ cython bar.py

       Error compiling Cython file:
       ------------------------------------------------------------
       ...
       def bar(foo):
               qux = foo
               quux = foo[qux.baz](qux.baz]

The)
                     ^
       ------------------------------------------------------------

       /Users/daniel/Desktop/cython-test/bar.py:3:15: Object of type '<unspecified>' has no attribute 'baz'

Migrated from http://trac.cython.org/ticket/638

@robertwb
Copy link
Contributor Author

robertwb commented Jan 8, 2011

@robertwb changed owner from somebody to robertwb
commented

The problem was that the indexing operator inference was changed to depend on the index type, but its type_dependencies method wasn't updated to reflect this.

@robertwb
Copy link
Contributor Author

robertwb commented Jan 8, 2011

@robertwb changed resolution to fixed
status from new to closed
commented

Fix at 43a3dbe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant