Is this considered black magic?

Skip Montanaro montanaro at tttech.com
Mon Nov 12 02:24:23 EST 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.

Skip




More information about the Python-list mailing list