Is this considered black magic?

Skip Montanaro montanaro at
Mon Nov 12 08:24:23 CET 2001

After rereading my own post, I think

    classcol = c.get("__class__")
    print classcol.get("__name__")

should maybe be

    print c.get("__class__").get("__name__")

to more strongly emphasize the correspondence with chaining attributes
starting with a single object.


More information about the Python-list mailing list