3 ms·
> 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
by ronnix 13y ago
> 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...
- kijin 13y agoI 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.
- amalashkevich 13y agoI'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.
- ronnix 13y agoOK, thanks. But isn't it the point of all ORMs? Why the emphasis on pure?
- amalashkevich 13y agoPure 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.
- mbreese 13y agoOrdinarily 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.