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

> I'm not very familiar with the culture of the Python community so this might come across as offending, but why such an obsession with "pure" Python?

I think it refers to the implementation, meaning the library has no C modules and is written 100% in Python.

This means it should be able to run on all Python implementations, including Jython, IronPython, PyPy, Google App Engine...



I'm Alexey Malashkevich, one of the Pony ORM authors. For now Pony ORM runs on CPython only because there is no access to frames in other implementations. "Pure Python" means that you can write queries in term of objects using Python generators.


OK, thanks. But isn't it the point of all ORMs? Why the emphasis on pure?


Pure in this case means that you can use Python syntax in order to query a database. This way a database query looks identical to an iteration over a list of Python objects.


I see. It actually makes sense to emphasize the purity in this case, since it almost looks like Pony is messing with the Python interpreter itself.


Ordinarily this is what "pure python" would mean. Since "pure python" libraries can run anywhere without compiling C code.

But in this case, they are referring to the fact that you don't have to write SQL and write your queries using Python syntax generators.




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

Search: