From: Robert Klemme Date: 2005-01-29T00:45:51+09:00 Subject: Re: : How can I find the filename where a class is defined? "George Moschovitis" schrieb im Newsbeitrag news:1106922976.553171.111240@c13g2000cwb.googlegroups.com... > > Since a class can be spread over multiple files, you have to define > which > > one(s) you want to get. > > My class is defined in one file only. I dont want a general solution. I > want a solution for classes defined in a single file. Any other ideas? > -g. Maybe you can cook something up with set_trace_func. So you can set the trace funtion at the beginning of your script and fill some global mapping from class to file name. robert