Sorry I want to learn Python, and was curious if Reddit's codebase uses any sort of ORM?
+2
A:
Yes. Reddit uses the Pylons framework, and relies on the SQLAlchemy framework for its own ORM layer. However, SQLAlchemy is a fairly low-level ORM library as far as ORMs go, and so Reddit has a fair amount of custom code that makes the ORM stuff work.
mipadi
2009-12-14 23:44:35
Ah yes, that is in fact what I meant. Thanks for fixing that Dan!
mipadi
2009-12-15 01:10:52
Reddit doesn't actually use the SQLAlchemy ORM. It does use the SQLAlchemy SQLExpression toolkit (that's the bit that let's you build SQL with things like Model.field == value). In SQLAlchemy these are handled as 2 separate pieces.
Alex Gaynor
2009-12-15 07:10:42