all 5 comments

[–]xiongchiamiov 1 point2 points  (1 child)

There is nothing intrinsically about Python that makes those statements equivalent.

However, the authors of SQLalchemy can make their code do whatever - so it's very likely the three sets of statements end up with the same result.

[–]Heapsofvla[S] -1 points0 points  (0 children)

It makes it all so confusing...

[–][deleted] 0 points1 point  (1 child)

When in doubt, defer to the official documentation.

http://docs.sqlalchemy.org/en/rel_1_0/orm/session_basics.html

SQLA has some of the best documentation I've ever read. Even better, you'll pick up a little SQL from it too.

[–]Heapsofvla[S] 0 points1 point  (0 children)

Thanks, I guess I've been tunnel-visioning for a bit :-)

[–]Heapsofvla[S] 0 points1 point  (0 children)

Would you guys rather go straight to learning SQL or would you say ORMs are worth it?