# do something with (p,o) pairs
   for (p,o) in triples.predicate_objects(subject) :
 	    do_something(p,o)