exaloop / codon

A high-performance, zero-overhead, extensible Python compiler using LLVM
https://docs.exaloop.io/codon
Other
14.05k stars 496 forks source link

Metaclasses #361

Open elkarouh opened 1 year ago

elkarouh commented 1 year ago

Are there any plans to support metaclasses? Codon gives syntax error when using class Klass(metaclass=...)

msftcangoblowm commented 1 year ago

Can't speak for what codon does or will support.

This is general conversation about Python metaclass.

Recent change occurred, which depreciates metaclass in favor of __initsubclass_\

So the codon devs can get away with not supporting metaclasses in favor of __initsubclass_\

Metaclasses run into metaclass conflicts that are resolvable, but the syntax is awkward and non-intuitive.

przemyslaw0 commented 11 months ago

I tried to import types library from Python, but it doesn't solve this problem.