You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is known and a fundamental limitation of how Rust macros work. The pymethods macro just sees the unexpanded impl_method! syntax. Instead you should create a bigger impl_methods! macro which expands to a #[pymethods].
We can improve the documentation and error for this case.
This is known and a fundamental limitation of how Rust macros work. The pymethods macro just sees the unexpanded impl_method! syntax. Instead you should create a bigger impl_methods! macro which expands to a #[pymethods].
We can improve the documentation and error for this case.
Bug Description
Example code:
Test python code:
Expect behaviour: function a, b and c should be printed.
Current behavious: only function a is printed.
Steps to Reproduce
For quick reproduce, clone repo https://github.com/n0b0dyCN/pyo3_example and follow readme.
Backtrace
No response
Your operating system and version
Linux MY_HOST_NAME 5.15.0-56-generic #62~20.04.1-Ubuntu SMP Tue Nov 22 21:24:20 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Your Python version (
python --version
)Python 3.8.10
Your Rust version (
rustc --version
)rustc 1.65.0-nightly (d394408fb 2022-08-07)
Your PyO3 version
0.17.3
How did you install python? Did you use a virtualenv?
use
python -m venv
Additional Info
No response
The text was updated successfully, but these errors were encountered: