Top "Introspection" questions

A capability of some object-oriented programming languages to determine the type of an object at runtime.

Getting the class name of an instance?

How do I find out a name of class that created an instance of an object in Python if the …

python introspection instanceof python-datamodel
Is there a built-in function to print all the current properties and values of an object?

So what I'm looking for here is something like PHP's print_r function. This is so I can debug my …

python debugging introspection pretty-print python-datamodel
Get all object attributes in Python?

Is there a way to get all attributes/methods/fields/etc. of an object in Python? vars() is close to …

python introspection python-2.6
Finding what methods a Python object has

Given a Python object of any kind, is there an easy way to get the list of all methods that …

python introspection
How to get the name of the current method from code

I know you can do this.GetType().FullName To get My.Current.Class But what can I call to get …

c# introspection
How do I look inside a Python object?

I'm starting to code in various projects using Python (including Django web development and Panda3D game development). To help …

python introspection
Determine function name from within that function (without using traceback)

In Python, without using the traceback module, is there a way to determine a function's name from within that function? …

python function introspection traceback
How do I access properties of a javascript object if I don't know the names?

Say you have a javascript object like this: var data = { foo: 'bar', baz: 'quux' }; You can access the properties by …

javascript object properties iteration introspection
Ruby: kind_of? vs. instance_of? vs. is_a?

What is the difference? When should I use which? Why are there so many of them?

ruby inheritance introspection
How can you print a variable name in python?

Say I have a variable named choice it is equal to 2. How would I access the name of the variable? …

python dictionary variables introspection