Top "Introspection" questions

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

Python introspection: access function name and docstring inside function definition

Consider the following python code: def function(): "Docstring" name = ??? doc = ??? return name, doc >>> function() "function", "Docstring" What …

python introspection
Why does Ruby use respond_to? instead of responds_to?

I'm curious why Ruby's introspection related method to check if an object responds to a method is respond_to? instead …

ruby naming-conventions introspection
How do I find all the property keys of a KVC compliant Objective-C object?

Is there a method that returns all the keys for an object conforming to the NSKeyValueCoding protocol? Something along the …

objective-c cocoa properties introspection key-value-observing
Introspect calling object

How do I introspect A's instance from within b.func() (i.e. A's instance's self): class A(): def go(self): …

python introspection
How do I introspect things in Ruby?

For instance, in Python, I can do things like this if I want to get all attributes on an object: &…

ruby introspection irb
PL/SQL: Retrieve names of procedures and functions within a package

Is it possible to retrieve the names of all procedures and functions that reside within a particular package? I understand …

oracle function plsql introspection procedure
Illegal access exception when trying to access attibrute from parent class by introspection

I am currently playing with introspection and annotations in Java 1.5. The have a parent abstract class AbstractClass. The inherited classes …

java introspection java-5
Accessing a method in a super class when it's not exposed

In a subclass, I'm overriding a method that is not exposed in the super class. I know that I have …

objective-c introspection
Find functions explicitly defined in a module (python)

Ok I know you can use the dir() method to list everything in a module, but is there any way …

python introspection
Checking up on a `concurrent.futures.ThreadPoolExecutor`

I've got a live concurrent.futures.ThreadPoolExecutor. I want to check its status. I want to know how many threads …

python concurrency introspection concurrent.futures