Create and retrieve object list in Python
<p>I would like to keep a reference of the objects I've created in one script to use them in another script (without using shelve).</p>

<p>I would like something close to :</p>

<p>script 1</p>

<pre><code>class Porsche(Car):
    """ class representing a Porsche """
    def __init__(self, color):      
        self.color = color


class Porsche_Container:
    # objects here 
    return objects

my_Porsche = Porsche(blue)
my_Porsche2 = Porsche(red) 
</code></pre>

<p>script2</p>

<pre><code>for object in Porsche_Container:
    print object.color
</code></pre>

<p>rgds,</p>
