-
Notifications
You must be signed in to change notification settings - Fork 1k
pathlib.Path.__rtruediv__ micropython incompatability. #621
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
Comments
Does your target have |
I no longer see the options in |
And also |
no luck setting both to true; i'm digging a lil deeper. |
I think this comment here is incorrect (as in, we shouldn't allow truediv with a string, not sure if comment is up to date with implementation): I'll see if I can come up with a fix. |
Will be resolved in: Closing this issue for now. |
This (reverse inplace ops with str) is now supported in MicroPython. |
excellent! iirc i have a test somewhere just to make sure this works as expected for pathlib, I'll open a PR. Thank you very much! |
Added support in #663 |
I wanted to add the following magic method to the
pathlib.Path
object:so that the following unittest would be satisfied:
However, I get the following stacktrace:
The
__rtruediv__
method never gets called, suggesting that thestr.__truediv__
gets called in a way that is different than in cpython. I'm not familiar enough with cpython or micropython internals to knowstr
's__truediv__
implementation, but something is up.The text was updated successfully, but these errors were encountered: