-
Notifications
You must be signed in to change notification settings - Fork 779
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
__getitem__, __setitem__, __len__ missing #402
Comments
Of course, not just
Could also be truly interesting to have :) |
Thanks, wasn't aware of that doc and I was using these ones https://github.com/PyO3/pyo3/tree/master/guide/src |
If I try:
it will tell me:
what am I doing wrong there? (sorry for these newbie questions though :() |
When using with pyproto you should use https://pyo3.rs/master/doc/pyo3/class/sequence/trait.PySequenceProtocol.html |
@kngwyu Thanks, that did it. Btw, isn't there any pyo3 irc channel available? Asking cos I don't use gitter at all... ie: freenode/moznet/ofct,.... that'd be quite awesome. Anyway, thanks for this last link |
I've got stuck again with this https://github.com/brupelo/mcve/blob/master/src/lib.rs#L48, here's the error I'm getting error. Also, I've created #pyo3 in both moznet & freenode, it'd be really helpful if you announced those channels on the startup badges in addition to the existing gitter one so guys who like IRC will join, ty! |
Never mind about my last unanswered question, at the end I've just ported that rust iterator code to python. About not commenting on my proposal about pyo3 irc channels... too bad, I assume you're just interested on that fancy gitter thing. On the other hand, it's quite easy to add freenode badgets on the README.md, look... in my project I've done it :) |
From the docs I've seen right now there are these methods implemented:
Is that all? Asking cos it'd be really convenient to have other ones such as
__getitem__, __setitem__, __len__
, right now instead__getitem__
I'm using methods calledget
orlength
, which are far away from being pythonic, ie::(
Ps. Using
version = "0.6.0-alpha.4"
The text was updated successfully, but these errors were encountered: