-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add Py_FindMethod to docs #22
Comments
I just came across this myself, it would be great if there would be a macro for |
Hi, |
Ok .. figured it (mostly) out ... not quite as Since |
Is the code you're working on open-source, by any chance? |
It will be, once it is all working. In the mean time here the relevant code snippet:
like i said, i could not yet find why |
I ran into a similar situation. What worked really well was having an ifdef that activates on Python3 that sets the That should eliminate the need for custom code in getattro for looking up the methods -- Maybe py3c should not add Py_FindMethod support, but if there's some useful information in this issue then perhaps it can be folded into the docs. [ I realize I'm responding to an issue from 2018 but figured this might be helpful for someone else as well. cheers! ] |
It's still an open issue :) |
Add a "Py_FindMethod and Generic Attributes" section to document the use of Py_FindMethod. Document how to upgrade old code that uses Py_FindMethod() from a custom tp_getattr function. Provide an example demonstrating how to replace general usage of Py_FindMethod. Closes encukou#22 Signed-off-by: David Aguilar <davvid@gmail.com>
Add a "Py_FindMethod and Generic Attributes" section to document the use of Py_FindMethod. Document how to upgrade old code that uses Py_FindMethod() from a custom tp_getattr function. Closes encukou#22 Signed-off-by: David Aguilar <davvid@gmail.com>
Add a "Py_FindMethod and Generic Attributes" section to document the use of Py_FindMethod. Document how to upgrade old code that uses Py_FindMethod() from a custom tp_getattr function. Closes #22 Signed-off-by: David Aguilar <davvid@gmail.com>
No description provided.
The text was updated successfully, but these errors were encountered: