Skip to content
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

support magic-methods #1

Open
15 of 27 tasks
kecnry opened this issue Jun 17, 2017 · 1 comment
Open
15 of 27 tasks

support magic-methods #1

kecnry opened this issue Jun 17, 2017 · 1 comment

Comments

@kecnry
Copy link
Owner

kecnry commented Jun 17, 2017

like len() __len__ etc. These could all be hardcoded, but there must be some way to override them all at once

many of these will need to be done by hand, particularly math methods

math methods:

  • abs
  • add/radd
  • div/rdiv
  • divmod/rdivmod
  • floordiv/rfloordiv
  • mul/rmul
  • pos (???)
  • pow/rpow
  • sub/rsub
  • truediv/rtruediv

logic methods:

  • len
  • and
  • contains
  • eq
  • ge
  • le
  • lt
  • ne
  • neg
  • nonzero
  • or
  • xor/rxor

conversion/manipulation:

  • str
  • copy
  • deepcopy
  • delattr
  • delitem
kecnry added a commit that referenced this issue Jun 17, 2017
@kecnry
Copy link
Owner Author

kecnry commented Jun 18, 2017

see f6e03f9 for reverting string representation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant