Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Python is designed to be easily extended with C. If you need performance then write those performance-critical parts in C and write lightweight wrapper to python.


Or write speed-critical Python iterator directly in C. Python source is the best reference: http://svn.python.org/view/python/trunk/Objects/dictobject.c... (look at the end).

Python/C API rules.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: