thautwarm / Traffy.UnityPython

An efficient Python implementation in C#, running on every platform via Unity IL2CPP.
MIT License
44 stars 0 forks source link

should set class attributes #8

Closed thautwarm closed 2 years ago

thautwarm commented 2 years ago

https://github.com/thautwarm/Traffy.UnityPython/blob/d39a8c6437c26763edf0901aa3d8ae8c6e46e0e7/UnityPython.BackEnd/src/Traffy.Objects/Class.cs#L450

use Class[key.ToIntern()] = value instead, which automatically resolves if the value is a method/property/staticmethod/classmethod/classfield.