tags:

views:

175

answers:

2

Sorry I want to learn Python, and was curious if Reddit's codebase uses any sort of ORM?

+2  A: 

Have a look: http://code.reddit.com/browser/r2/r2/lib/db/

David Brown
+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
Ah yes, that is in fact what I meant. Thanks for fixing that Dan!
mipadi
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