How do I parse an "id" to a class object from a range function variable during instantiation?
===

Have spent most of the morning on this one and have to admit that I'm stuck.

I have a task where the core problem is to create a lot of objects, which each have an identifier which should be callable from a function. - By concept this should be similar to the SQL statement 

"Select *id* from *all objects* where *id > some integer*;". 

The main-function below contains the loop that generates the id's. Next the objects should be created, with the id obtained from the range variable "i". I have looked at using [super][1] but can't see the lines that connect the dots. Do you have a good advice on this?

    class aContainer(self, n):
        def __init__(self, n):
            self.id = n
            #self.contains=[]

    class create_object(n):
        # Completely blank 

    def main()
        for i in range(10):
            create_object(i) # i is the id-tag of the object.
        # next: print list of object.id's
    
    main()




  [1]: http://docs.python.org/py3k/library/functions.html#super