APrioriInvestments / typed_python

An llvm-based framework for generating and calling into high-performance native code from Python.
Apache License 2.0
197 stars 8 forks source link

Names of method types are missing the class name #427

Open braxtonmckee opened 1 year ago

braxtonmckee commented 1 year ago

If you write

class C(Class):
    def f(self):
        pass

print(C.MemberFunctions['f'])

the resulting type doesn't have 'C' in its name - it has the name of the function, and it knows the module, but it doesn't know that there is a class name. We either need to put 'C' in the module (which seems weird since the module doesn't exist) or make another place in Type objects to put this kind of info.