简体   繁体   中英

Does IronPython support metaclasses?

Are Python metaclasses, and class factories fully supported by IronPython? If I have a functional code (in CPython 2.7) full with these thing will just work in IronPython?

The best approach is to simply try it. IronPython and CPython are created differently, and have different optimisations. Basic things like metaclasses should work without problems, but there might be other problems. If you are trying to write code which supports both CPython and IronPython, then you should test it on both platforms as you go. Ie, when you run your test suite, run it in both environments (and any others you intend to support). I'm not sure if tox supports IronPython, but it might help you set this up.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM