I\'ve been cleaning up some code from a module I\'m extending and I can\'t seem to find a way to Pythonify this code:
global_next_id = 1 class Obj: def __
Generator?
def get_next_id(): curr_id = 1 while True: yield curr_id curr_id += 1