From: Joey Gibson Date: 2003-01-16T04:21:22+09:00 Subject: Re: Doc Strings? On Thu, 16 Jan 2003 03:52:44 +0900, Chad Fowler wrote: ||| How do you find out where a method is called from? There's the "caller" method that returns a stack list. ||| I used to do this in Java ||| through some nasty stack trace hacks (throw an exception and ||| capture/parse the stack trace string). So have I; it's pretty nasty. ||| I'm not sure how useful any of this is (never used the doc string ||| concept, personally), but now I want to know how to do it. Hopefully ||| I'm just forgetting something obvious. I generally have used __DOC__ when I'm in an interactive Python session and I can't remember what a class/method does. Joey -- http://www.joeygibson.com