Re: [Tutor] Introspecting class and method names

2005-12-14 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > * Kent Johnson <[EMAIL PROTECTED]> [051214 16:00]: >>You can look at the stack frame to find out what method you are in. See for >>example >>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66062 > > > Thanks! This is really nice! > > Must tie a string aroun

Re: [Tutor] Introspecting class and method names

2005-12-14 Thread tim
* Kent Johnson <[EMAIL PROTECTED]> [051214 16:00]: > Tim Johnson wrote: > > I was pleasantly surprised to notice in a previous thread that python > > can automagically retrieve a class name thru __class__.__name__ > > 1)Can someone point me to further documentation on this topic? > > __name__ and

Re: [Tutor] Introspecting class and method names

2005-12-14 Thread Brian van den Broek
Tim Johnson said unto the world upon 2005-12-14 18:02: > I was pleasantly surprised to notice in a previous thread that python > can automagically retrieve a class name thru __class__.__name__ > 1)Can someone point me to further documentation on this topic? > 2)Is it possible for the name of a clas

Re: [Tutor] Introspecting class and method names

2005-12-14 Thread Kent Johnson
Tim Johnson wrote: > I was pleasantly surprised to notice in a previous thread that python > can automagically retrieve a class name thru __class__.__name__ > 1)Can someone point me to further documentation on this topic? __name__ and __module__ at least are documented here: http://docs.python.org

[Tutor] Introspecting class and method names

2005-12-14 Thread Tim Johnson
I was pleasantly surprised to notice in a previous thread that python can automagically retrieve a class name thru __class__.__name__ 1)Can someone point me to further documentation on this topic? 2)Is it possible for the name of a class method to be programmatically retrieved from within the sc