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
Following methods/attributes need to be implemented on type int. Please feel to pick unchecked method/attributes int is implemented in vm/src/obj/objint.rs
See, you think it'll be that simple 😄. We've had two previous attempts at implementing int.__sizeof__, #1172 and #1426, the latter of which is currently open. There's also a discussion topic on __sizeof__ at #1250. If you want to give it a shot based on my comment (#1426 (comment)), feel free to, as #1426 has stagnated a bit.
__getnewargs__ is a pickle feature and __init_subclass__ is metaclass support(#1346). (maybe we'd better to have metaclass issue for this)
So it seems int is now practically done.
Activity
[-]Implementing int.* [/-][+]Need to implement int.* [/+]implemented rounding funcs for int (RustPython#304)
Merge pull request #326 from lausek/master
Tom1380 commentedon Feb 9, 2019
Can someone point me towards where I can find the specifications for these methods?
lausek commentedon Feb 10, 2019
Sorry,
__int__was merged in #326 aswell.Mec-iS commentedon Feb 14, 2019
@Tom1380 The reference is CPython implementation -> https://github.com/python/cpython
dralley commentedon Oct 3, 2019
The current list is just
ashermancinelli commentedon Oct 15, 2019
I'd love to try at
int.__sizeof__,mem::size_of::comes to mind. Would anyone be willing to give some direction?coolreader18 commentedon Oct 15, 2019
See, you think it'll be that simple 😄. We've had two previous attempts at implementing
int.__sizeof__, #1172 and #1426, the latter of which is currently open. There's also a discussion topic on__sizeof__at #1250. If you want to give it a shot based on my comment (#1426 (comment)), feel free to, as #1426 has stagnated a bit.youknowone commentedon Jan 2, 2020
__getnewargs__is a pickle feature and__init_subclass__is metaclass support(#1346). (maybe we'd better to have metaclass issue for this)So it seems
intis now practically done.