Let's say, I have declarative classes A, B, C, D.

A is the parent
B has FK&relationship to A
C has FK&relationship to B,
D has FK&relationship to C etc...

I'd like to implement *generic method* walk(obj) which will recursively 
yield dependent/related objects of obj (which is instance of A).

I know that there is introspection interface inspect(), however I'm don't 
really understand how to use it properly in my use case.

Shall I do inspect(obj) or rather inspect(obj.__class__) and then somehow 
apply inspection to obj?

Are there an examples and best practices?

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to