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

> I'd love to do this in Python, but unfortunately we can't.

> assert is supposed to be cheap in production because you remove them there.

well... Python is so slow that are you going to notice the overhead of assert calls?

(Not being negative, I really like Python)



Of course.

Python is a great glue language, so you will do most of the expensive call outside of Python. However, things you typically put in assert are usually pure Python you call repeatedly, putting you in the worse of both worlds.




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

Search: