Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my_obj_list = [<obj1>,<obj2>,<obj3>....]
- def get_object() :
- for i in my_obj_list :
- yield i
- obj = get_object()
- manipulate_object(obj):
- # do some manipulation with the object
- My question is will this go back and return the next object ?
Add Comment
Please, Sign In to add comment