how to cast an instance id

Darrell dgallion1 at
Tue Sep 17 12:42:09 EDT 2002

class foo:
    def info(self):
        print self

a = foo()
ccc = "%s()"%( str(a.__class__).split(".")[-1], )

< instance at 0x00767378>
< instance at 0x007673B0>
< instance at 0x007673B0>


Eric Texier <erict at> wrote in message news:<3D86E888.90AF569 at>...
> It there a way to create a new reference of  an object
> from the string representation of its id?
> Thanks for any help.

More information about the Python-list mailing list