a module finding its own name

Skip Montanaro skip at pobox.com
Fri Sep 10 10:19:17 EDT 2004


    Alexander> Is there a more or less sane way for a module to find its own
    Alexander> name?

Sure.

    print __name__

Skip



More information about the Python-list mailing list