Skip to content

Better support for dunder methods #553

@msullivan

Description

@msullivan

Currently mypyc supports a limited subset of dunder methods without clear diagnostics about this. We should support basically all of them,

  • __pow__, __rpow__, and __ipow__
  • __divmod__, __rdivmod__

Most should be easy, and just need a bit of plumbing through emitclass and emitwrapper and some tests.

Metadata

Metadata

Labels

featureSupporting previously unsupported Python, new native types, new features, etc.help wantedpriority-0-highpython compatMypyc doesn't match CPython or documented semantics.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions