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

docstrings on "__nonzero__()" method break module-init code in Py3.1 #984

Closed
robertwb opened this issue Oct 17, 2009 · 5 comments
Closed

Comments

@robertwb
Copy link
Contributor

__nonzero__ is renamed to __bool__ in Py3.1. However, the code that Cython generates to set the docstring tries to access the method through the type dict where it cannot be found in Py3.1 due to the renaming. This leads to an AttributeError on module import.

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

@robertwb
Copy link
Contributor Author

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

The problem is with the autotestdict code (and the docstring is actually fetched). A better approach is needed in general, so for 0.12 we're blacklisting slots that cause problems.

http://hg.cython.org/cython-devel/rev/7289c41ad3c3

@robertwb
Copy link
Contributor Author

robertwb commented Nov 5, 2009

@robertwb changed resolution from fixed to empty
status from closed to reopened
commented

@robertwb
Copy link
Contributor Author

robertwb commented Nov 5, 2009

@robertwb changed owner from somebody to dagss
status from reopened to new
commented

@robertwb
Copy link
Contributor Author

robertwb commented Nov 5, 2009

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

@robertwb robertwb closed this as completed Nov 5, 2009
@robertwb
Copy link
Contributor Author

robertwb commented Nov 5, 2009

@robertwb changed milestone from wishlist to 0.12
commented

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